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.
(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.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more