Question: Problem 3: Create a card game called flash card using struct data structure when each player draws three cards for random numbers (1-4) as Diamond,
Problem 3: Create a card game called flash card using struct data structure when each player draws three cards for random numbers (1-4) as Diamond, Spade, Clubs and Hearts respectively and another set of random numbers of card value 1- 13. The cardScore is defined as highest (say cardScore 100 for three Kings (cardValue 13), followed by three Queens (cardValue 12) (say cardScore 90), followed by three Jacks (cardValue ) (say cardScore -80) and then three A's (cardValue )(say cardScore = 70). Other than the above said combinations the cardScore is defined by the sum of the cardValue of each draw. The player which has the highest score after three draws win. Display the cards drawn by each player and the cardScore and the winner. Write the C++ code and algorithm in words for the following problem (Marks 20)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
