Question: Assignment: Write algorithms and programs to implement a simulation of a deck of cards for a card game - stud poker. Your simulation will use
Assignment: Write algorithms and programs to implement a simulation of a deck of cards for a card game - stud poker. Your simulation will use structures to represent each card, not a simple primitive type your choice on how to represent the deck and hands; but hands should be separate from the deck. This implementation will only allow from 1-7 players (instead of 1-13) and ONLY 5 cards per hand (instead of 1-13) . During your validation, any integer value entered for the cards per hand must be changed to 5. Additionally, the hands will be sorted (by rank value) and displayed after sorting. The hands will then be assigned their poker rank (one pair, two pair, flush, etc.). Finally, one (or more) of the hands will be designated as the winner, based upon the poker hand ranking.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
