Question: 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
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 =65 for three Kings (cardValue 13), followed by three Queens (cardValue 12) (say cardScore 60), followed by three Jacks (cardValue 11) (say cardScore =55) and then three As (cardValue 1) (say cardScore = 50). 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
