Playing Card and Deck Of Cards

Posted on Updated on

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s