Home | History | Annotate | Line # | Download | only in fish
      1  1.1  cgd This is the traditional children's card game "Go Fish".  We each get seven
      2  1.1  cgd cards, and the rest of the deck is kept to be drawn from later.  The
      3  1.1  cgd object of the game is to collect "books", or all of the cards of a single
      4  1.1  cgd value.  For example, getting four 2's would give you a "book of 2's".
      5  1.1  cgd 
      6  1.1  cgd We take turns asking each other for cards, but you can't ask me for a card
      7  1.1  cgd value if you don't have one of them in your hand!  If I have any cards of
      8  1.1  cgd the value you ask for, I have to give them to you.  As long as I have one
      9  1.1  cgd of the cards you ask for, you get to keep asking.  If you ask me for a
     10  1.1  cgd card of which I don't have any, then I'll tell you to "Go Fish!"  This
     11  1.1  cgd means that you draw a card from the deck.  If you draw the card you asked
     12  1.1  cgd me for, you get to keep asking me for cards.  If not, it's my turn and I ask
     13  1.1  cgd you for a card.
     14  1.1  cgd 
     15  1.1  cgd Sometimes you get to ask first, sometimes I do.  I'll tell you when it's
     16  1.1  cgd your turn to move, I'll draw cards from the deck for you, and I'll tell
     17  1.1  cgd you what you have in your hand.  (Don't worry, I don't look at your hand
     18  1.1  cgd when I'm trying to decide what card to ask for, honest!)
     19  1.1  cgd 
     20  1.1  cgd Your input can be a card name ("A", "2", "3", "4", "5", "6", "7", "8",
     21  1.1  cgd "9", "10", "J", "Q" or "K") or the letter "p", or "quit".  The letter "p"
     22  1.1  cgd makes my game much smarter, and the line "quit" stops the game.  Just
     23  1.1  cgd hitting the carriage return key displays how many cards I have in my hand,
     24  1.1  cgd how many are left in the deck, and which books I've gotten.
     25  1.1  cgd 
     26  1.1  cgd Normally, the game stops when one of us runs out of cards, and the winner
     27  1.1  cgd is whoever has the most books!
     28  1.1  cgd 
     29  1.1  cgd Good luck!
     30