I need this done by tomorrow before 5pm central USA time zone.
Go Fish is a children’s card game usually played by 3-6 players(although two can also play), usinga shuffledstandarddeck of 52 cards. The objective of the game is to collect as many “books” (sets of 4 cards of the same rank) as [url removed, login to view] game starts by dealing 5 cards to each player. The player to the dealer’s left takes the first turn. During Player A’s turn, Aasks a specific player (call this Player B) to give Aall cards of a specific rank. To do this, Amust possess at least one card of that rank. If Bhas any cards of that rank, s/he must give all of them to A, andAthen takes another [url removed, login to view] Bdoes not have any cards of that rank, s/he tells Ato “Go fish!” At this point, Adraws the top card fromthe deck. If that drawn card matches the rank that Ainitially requested, Atakes another turn. If the drawn card does not match the rank that Ainitially requested, it becomesB’s [url removed, login to view] soon as a player collects 4 cards of the same rank (whether from another player, or from the deck), s/he removes this “book” of cards from his/her hand and sets it aside. The game ends when there are no cards left in the deck, or when any player runs out of cards in his/her hand. The winner is the player with the most [url removed, login to view] are possible.
Write a text-based implementation of Go Fish. Your program should allow 2-6 players to play the game. Since there’s no concept of “to the dealer’s left” in this software version, you can make the first turn go to any player you wish. When a player takes his/her turn, your program should display a count of how many cards are left in the deck, as well as a summary of that player’s current hand and collected books, if any. When the game ends, determine and show the winning player(s) on the screen.
To make things easier for you (and for the TAs!), I’ve already developed a basic class design for you.
Card and Deck classes to represent an individual card and a deck of cards. You can use the Card and Deck classes from the poker example discussed in lecture as a starting point. However, you may need to add a little bit more functionality.
A Player class to represent each player. This class should include (but is not limited to) the following parts:
Cards in the player’s hand
Books that the playerhas collectedo
Adding a card to the hand
Removing cards from the hand that form complete books
Transferring all cards of a specific rank to another Player object
A GoFishclass to represent the entire set of [url removed, login to view] class should include (butis not limited to) the following parts:
An array of Playerobjectso
Allowing a specific player to take his/her turn
Checking whether the game is over
Determining the winning player(s)
A startGame()method similar to what we wrote in thepoker and Nim examples. This method iswhat will get executed when you run your game. Itshould include things like allowing the user to specify the number of players, collecting each player’s name, allowing players to take turns until the game is over, etc.
Note that all user input should be located only in the GoFishclass. The idea is that the core game objects (cards, deck, etc.) should be independent of the game’s user interface. If you wanted to make a graphical version of Go Fish, you’dbe able to use the existing classes and make changes only to GoFish!
Implement error checking on all user inputs, to the extent that was covered in COMP [url removed, login to view] example, you should include things like:
Making sure the user can’t select fewer than 2or greater than 6 players
Making sure a player can’t ask him/herself for cards
Making sure a player can’t request a rank that s/he does not have in his/her hand
15 freelancere byder i gennemsnit $123 på dette job
Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.
Feel fee to contact me [login to view URL] me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in order to help the [login to view URL] payment only after the work [login to view URL] yo Flere
Hi, I have a good experience of coding in Java. I assure you that your work will be done perfectly and in minimum possible [login to view URL] give me a chance. Thank you.
Hi , i just finished this mini-game , and it is working perfectly as i understand from the description, if you want the source code please contact me .
Hi. I'm new on this site and I'm interested in getting experience here )) Would you help me with it? I promise to do the job on time. I work in netbeans.