-
Notifications
You must be signed in to change notification settings - Fork 838
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4417 from tanyagupta01/main
Added new game - Go fish
- Loading branch information
Showing
61 changed files
with
935 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
audio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.