With 1.7 million freelancers, we'll match you with the perfect talent.
The client has made the following changes to the job.
Client prefers freelancers from:
You are still able to submit a proposal for this job.
The client prefers freelancers from
a different location.
You are to implement a simplified version of one of the card games below:
Go Fish for 2
Poker for 2(lots of variations)
Egyptian Rat Slap/Screw
War for 2 players
Blackjack for 2
Bullshit for 2
Speed for 2
You must have at least five classes in the implementation: application, Card, Deck, Player, and Game. The application class will extend JFrame. Nothing related to the card game itself is to be in the application class. You can prompt for a player name, etc., in the application class.
The Game class is to have all the rules of the game.
The Deck, Card, and Player, classes are pretty much self-explanatory
For input from the user, you can use the Scanner class - which means the player will have to click on the shell window to type input. On the other hand, for single key input, you can use a KeyListener, which allows the user to stay in the JFrame for entering keyboard characters. You can also use a MouseListener to click on "buttons" in the JFrame for input.
Sign in or Register to see more