Question: Write a simple menu-driven program called Game of Cards .using pyhthon Each card has thirteen different numbers. The thirteen possible numbers are: 1 to 13.
Write a simple menu-driven program called Game of Cards.using pyhthon Each card has thirteen different numbers. The thirteen possible numbers are: 1 to 13. This game has two cards.
In this game, the maximum bet amount is $200 and the minimum bet amount is $5. The amount of the winning prize is directly proportional to the number of matched cards after the two cards have been generated for each game.
Rules for this game:
Initial cash for this game is specified by player.
Maximum bet for each game is $200.
Minimum bet for each game is $5.
Two cards are used per game.
Player can place his or her bet amount for each game.
The winning prize is based on how many matched cards have been found:
If one matched cards have been found, then the prize is 2x.
If two matched cards have been found, then the prize is 4x.
If no matched card has been found, then the player loses his or her bet for this game-session.
Example of a menu could look like the following:
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
