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