Go Fish Java HW Project

Cancelled Posted 7 years ago Paid on delivery
Cancelled Paid on delivery

I need this done by tomorrow before 5pm central USA time zone.

Background Information

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 [login to view URL] 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 [login to view URL] 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 [login to view URL] 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 [login to view URL] are possible.

The Assignment:

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:

Instance variables

Player’s name

Cards in the player’s hand

Books that the playerhas collectedo

Methods

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 [login to view URL] class should include (butis not limited to) the following parts:

Instance variables

A Deckobject

An array of Playerobjectso

Methods

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 [login to view URL] 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

Java

Project ID: #11703956

About the project

14 proposals Remote project Active 7 years ago

14 freelancers are bidding on average $120 for this job

it2051229

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.

$35 USD in 1 day
(1072 Reviews)
7.6
utkarshkatiyar19

Hi, i have a lot of experience in java programming. i can easily complete this task for you. we can have a chat. thanks

$200 USD in 3 days
(312 Reviews)
7.2
asadrana91

need an A grade?contact me.

$155 USD in 1 day
(90 Reviews)
6.5
AhmedLabib93

Hello My name is Ahmed, i'm a top rated freelancer. i worked over 250 projects and over 600 hours doing java projects. plus i passed freelancer java exam with top 15% plus i got 2 java certificate 1Z0-803 and 1Z0- More

$50 USD in 1 day
(404 Reviews)
6.6
koustav2006

Hi, I am good at core java programming using OO design. I can help you complete the game in Java as per given specs and instructions. I will deliver the code as either Eclipse or Netbeans project. Please contact me More

$100 USD in 2 days
(175 Reviews)
6.3
usmanshery

Hi i'm software engineer and expert java developer. I have experience in multi-threaded systems such as simulations and games, data structure and algorithm and GUI development. Please contact me for details Regards U More

$55 USD in 3 days
(97 Reviews)
5.8
dipakjadhav08

A proposal has not yet been provided

$166 USD in 1 day
(84 Reviews)
5.4
appotato10

Hi, i am a senior java developer, see my profile to get details. I did many projects for students. Contact me to dícuss. Thanks, Appotato

$155 USD in 3 days
(10 Reviews)
4.1
nishantsingh0907

Hi , I have developed a similar card game for another employer . I can show you the code if you wish to. About me, I am a Java code enthusiast with Oracle certification. I am looking for good opportunities for coding s More

$133 USD in 1 day
(4 Reviews)
3.0
elarbaouioussama

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 .

$116 USD in 0 days
(0 Reviews)
0.0
cabanoff

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.

$111 USD in 1 day
(0 Reviews)
0.0