Question: please help with C Card Games: A shuffle is an array of 52 pairs of integers. The first of the pair is the card type
please help with C
Card Games:
A shuffle is an array of 52 pairs of integers. The first of the pair is the card type (0-13 representing Ace, 2, 3, .... King) and the second representing the suit (hearts, diamonds, clubs, spades). Thus a pair of numbers describes a unique card in the deck. For example, {6,3} would describe the Six of Clubs, and {13,1} would be the King of Hearts.
2.1 Shuffling
Write a function (void fill(shuffle[52][2])) to fill a shuffle with 52 random integer pairs, BUT, as with your playing cards, there must be exactly one of each pair in the shuffle.
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
