Question: For this assignment, you are to write a simple computer program that deals a hand of three cards, and evaluates it according to the rules
Background: Three Card Poker Three Card Poker is a variation of the game of Poker, in which each player receives 3 cards, and the hands are evaluated according to the table shown below. (This assignment does not require the evaluation of straights or straight flushes; however they may be included in optional enhancements. ) Hand Ranks of Three Card Poker Description Frequency Probability 0.22% 0.24% Rank Straight flush Three suited cards in sequence 48 52 Three of a kind Three cards of same rank | 7201??3.26%, ?? Three cards in sequence Straight Pair Total hands 1,096 3744| 16,440 | 4.96% 16.94% 74.39% Three suited cards Two cards of same rank Flush High card -None of the above 22,100 Program Details For this assignment, you are to write a simple computer program that randomly generates three cards, evaluates the resulting hand, and reports the results. Your program should first print out your name and ACCC netID (e.g. jbell ), and explain to the user what the program does
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
