diff --git a/GoFish.txt b/GoFish.txt index 86e44e2..4a50d3e 100644 --- a/GoFish.txt +++ b/GoFish.txt @@ -1,45 +1,59 @@ // Go Fish is a card game that uses all 52 cards in the deck. - - Shuffle cards. + Pass 1 card to each person. + Repeat until each person has recieved 5 cards included the dealer: - Place the rest of the deck in the middle of the players deck = draw deck. - While each player recieved cards: - Else in ascending order leave it - If not put in ascending order from 2 to Ace. - Else if you recieve all 4 of a card: - Place down all 4 cards for a point - If not don't put cards down. - If you get the starting 5 with no pairs or matching 4 put them in order. + Place the rest of the deck in the middle of the players deck. + While each player recieved cards: + If in ascending order: + Do nothing + Else: + Put in ascending order from 2 to Ace. + If you recieve all 4 of a card: + Place down all 4 cards for a point + Else: + Don't put cards down. + If you get the starting 5 with no pairs or matching 4: + Put them in order. //Example if you are dealt all 4 aces and 1 King put the 4 aces down gaining that point. - While player asks for a card it must be a card in their deck - If not they can't ask - Else if player asks you for card: - If you have cards give cards of value - If not say Go Fish + If card in deck: + If you have cards: + Give cards of value + If the person recieves the card they asked for: + End turn + Else: + Repeat drawing of card + Else: + Say Go Fish + Else: + They do not ask. //Example if the one player asks you for a 3, give all 3's if not Go Fish. - If the person didn't recieve card they asked for pull a card from deck: - If the person recieves the card they asked for - Repeat turn: - If not turn is over. - Else if you have run out of cards: - If you run out of cards draw 5 from deck - If deck < 5 take all cards. - If no cards in deck wait until game is over. + If you have run out of cards: + If you run out of cards: + draw 5 from deck + If deck < 5: + take all cards. + If no cards in deck: + wait until game is over. Repeat turns until cards are empty: - If cards for everyone have emptied count points to find winner - If player has all 4 of a card they have one point - If the 4 matching cards are face cards or 2-10 cards they are same value in points+ - // Count all points and add up - If player has more points than the other players they win - If tie no winner. + If cards for everyone have emptied: + count points to find winner + If player has all 4 of a card: + Add one point + If the 4 matching cards are face cards or 2-10 cards: + Add same value in points+ + Count all points and add up + If one player has more points than the other players: + they win + Else: + tie (no winner). //You win if you end the game with more points than your opponent One point = 4 of same card value