cs

In this project you will implement a simple card game using the PlayingCard and DeckOfCards classes you built in the previous two homework assignments. There are several options of varying complexity. Turn in just one of the following options:
(9 out of 15 points) In the simplest version of the game, you will

Explain the game to the user.
create and shuffle a deck of cards. 
Deal the first card to the user and deal the second card to the dealer, showing the two cards (labelling for the user what they represent).
If the user card has a higher value, then the user wins, otherwise the dealer wins. Tell the user who has won, or if it was a tie. Note: An Ace beats all other cards.

Don't use plagiarized sources. Get Your Custom Essay on
cs
Just from $13/Page
Order Essay

(12 out of 15 points) In the second version, do the same as above, but do multiple rounds, until the deck is exhausted. Keep track of how many rounds the user and the dealer have each won, and display the final result.
(15 out of 15 points) In the third version, deal the user a card, then ask them to guess whether they or the dealer will win. Deal a card to the dealer and show the user. If their guess is correct, then they score a point, and if their guess is wrong then the dealer wins. Play multiple rounds until the deck is exhausted. Keep track of how many rounds the user and the dealer have each won. Throughout the game, give enough messages to the user so they follow the game and it makes sense to them.

Order your essay today and save 15% with the discount code: APRICOT

Order a unique copy of this paper

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
Top Academic Writers Ready to Help
with Your Research Proposal
Live Chat+1(405) 367-3611Email