Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Write a little poker game which lets the player play a round of Poker against the computer.
  2. The ranking of the 5 cards are as follows:
  3.  
  4. You will calculate 5 random cards for the players, each of which has 1 of 4 suits (hearts, diamonds,
  5. clubs, and spades) and of the following faces: 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King, Ace.
  6. Once you have the 5 cards for the player, you will create five cards for the computer, in the same way.
  7. Once all cards are determined, you will compare the hands and determine the winner.
  8. This exercise requires no input from the player, the only thing you need to output is the hand of the
  9. player, the hand of the computer, and who the winner is.
  10. Tip: work your way bottom up in the list of winning hands: check for one pair first, then for 2
  11. pairs, then for 3 of a kind, etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement