"Welcome to Gofish Game!"
-
52 cards in an array
-
(play or exitt?)-->bool exit (mainMenu class)
-
(game finished?) -->bool winner
-
game play
while (exist == false){
- gamereset()
- shuffle()
- drawACard()
- you and computer get 7 cards-->drawACard()72
- total number of cards is always 52
- level()-->smart or stupid computer?
while (winner == false){
- sort()-->sort cards and get rid of duplicates to display
- askRank()-->display what card of rank is needed -->player knows what ranks to ask --> returns the needed rank (in progress)
- choose() -->make computer to choose a rank to ask
- goFish() --> don't have the card--> draw a card
- exchange() --> have the card --> give out the card
- getScore() --> 1 credit for having 4 cards with the same rank
- winner() --> who gets more completed deck
}
- game finish
- call the mainMenu class again
}
"Thanks for playing!"
- Card class
- rank
- suit
- getters & setters