Question: THIS CODE MUST BE WRITTEN IN C ! ! You are the dealer in Texas Hold em Poker. Your duty is to deal two cards
THIS CODE MUST BE WRITTEN IN C
You are the dealer in Texas Holdem Poker. Your duty is to deal two cards to each player and
then deal three community cards, all from a single deck. This renders a hand of five
nonrepeating and nonduplicatory cards.
A deck of cards consists of numeric cards from Ace to as well as three face cards Jack
Queen, King of four different suits spades clubs, diamonds, and hearts In total, this renders
unique cards.
Write a program which deals ie prints to the terminal a hand cards for at least one player,
as well as the river cards At minimum, this is random cards total. Your program should
deal different cards every time the program is run do not choose a set of random cards to
deal and just print out the same five cards
Expected output:
River Cards:
Ace of Spades
of Hearts
King of Hearts
Player Cards:
of Spades
of Diamonds
Incorrect Output:
d d face cards should display the face, not a numerical representation
use strings for the suits, not singular characters
of Diamonds repeating cards
of Diamonds
Ace of Spades not random
of Spades
of Spades
of Clubs
of amonds if you have non ascii characters in your output, fixit!Th T
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
