Skip to content

Allball103/GoFish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GoFish.java

"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!"

Classes:

  1. Card class
  • rank
  • suit
  • getters & setters

About

CS 205 Go Fish

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages