Skip to content

Commit

Permalink
Merge pull request #4417 from tanyagupta01/main
Browse files Browse the repository at this point in the history
Added new game - Go fish
  • Loading branch information
kunjgit authored Jun 20, 2024
2 parents 211c013 + 97f8d10 commit 0e46659
Show file tree
Hide file tree
Showing 61 changed files with 935 additions and 3 deletions.
1 change: 1 addition & 0 deletions Games/Go-fish-master/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
audio
27 changes: 27 additions & 0 deletions Games/Go-fish-master/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Go Fish
---------

An emulator for the card game 'Go Fish'. Choose how many opponents you want to play against and see who is better!


## Rules:

- Each player starts with 7 cards (2/3 players) or 5 cards (4 or more players).
- Play begins with you, then each of your opponents from left to right.
- During their turn, each player 'goes fishing' by selecting a value of a card in their hand and another player, in the game this is done by clicking a card and an opponent, then clicking 'Take Turn'. If the selected player has any cards of that value the 'fisher' has made a 'catch'. The selected player must give the 'fisher' all their cards of that value. If the selected player has no cards of that value, the selector has not made a 'catch' and must 'Go Fish!' and draws a new card from the deck.
- If, during their turn, a player ends up with all 4 cards then they have collected a full set. The player then must immediately declare this and play their set face up, in front of them.
- If during play a player ends up with no cards in their hand they must draw a card from the deck, rather than 'going fishing' for cards from other people.
- The winner is the player with the most sets at the end.
- Once all 13 sets have been completed, play ends.


## Tools
- **HTML**
- **CSS**
- **JavaScript**
- **JQuery**
- **Atom Development Environment**
- **SourceTree Source Control**

## Screenshot
![image](../../assets/images/Go-fish-master.png)
105 changes: 105 additions & 0 deletions Games/Go-fish-master/css/master.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/* *{
border: 1px solid red;
} */



body {
font-family: "Open Sans", "Trebuchet MS", Helvetica, sans-serif;
margin: 0px;
background-color: green;
color: white;
border: 5px solid gold;
}

a {
text-decoration: none;
color: white;
}

a:visited {
color: white;
}

a:active {
color: red;
}

a:hover {
color: gold;
}

button {
height: 30px;
width: 100px;
border-radius: 10%;
background-color: ivory;
border-color: ivory;
border-style: outset;
border-width: 5px;
}

button:active {
border-style: inset;
}

button:focus {
outline: none;
}

ul {
text-align: left;
padding-left: 5%;
padding-right: 5%;
}

.center {
/* display: block; */
text-align: center;
}

.tracker {
padding-left: 5px;
padding-right: 5px;
width: 200px;
margin: 5px;
border: 5px ridge black;
/* justify-content: space-around; */
}

.card {
width: 100px;
/* height: 200px; */
border: 1px solid black;
justify-content: space-around;
}

.card:hover {
position: relative;
top: -10px;
}

.title {
margin-top: 40%;
}

#cardContainer {
/* display: flex; */
flex-wrap: nowrap;
border: 3px solid gold;
border-bottom: 0px;
}

#opponentContainer {
display: flex;
flex-direction: row;
justify-content: space-around;
}

.search {
display: flex;
flex-direction: row;
justify-content: space-around;
padding-left: 25%;
padding-right: 25%;
}
Binary file added Games/Go-fish-master/images/cardsjpg/10C.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/10D.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/10H.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/10S.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/2C.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/2D.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/2H.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/2S.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/3C.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/3D.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/3H.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/3S.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/4C.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/4D.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/4H.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/4S.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/5C.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/5D.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/5H.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/5S.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/6C.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/6D.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/6H.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/6S.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/7C.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Games/Go-fish-master/images/cardsjpg/7D.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/7H.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/7S.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/8C.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/8D.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/8H.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/8S.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/9C.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/9D.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/9H.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/9S.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/AC.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/AD.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/AH.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/AS.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/JC.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/JD.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/JH.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/JS.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/KC.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/KD.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/KH.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/KS.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/QC.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/QD.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/QH.jpg
Binary file added Games/Go-fish-master/images/cardsjpg/QS.jpg
19 changes: 19 additions & 0 deletions Games/Go-fish-master/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Go Fish</title>
<link rel="stylesheet" href="css/master.css">
</head>
<body>
<div class="center title">
<h1>Let's Play Go Fish!</h1>
<a href="pages/main.html">Play</a>
<a href="pages/ins.html">Instructions</a>
</div>
<div class="scripts">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="js/scripts.js" charset="utf-8"></script>
</div>
</body>
</html>
Loading

0 comments on commit 0e46659

Please sign in to comment.