Question: Make a python a game where the player starts with some amount of points or cash (like 100), and the player can choose to wager
Make a python a game where the player starts with some amount of points or cash (like 100), and the player can choose to wager any amount before the riddle is asked. If the player gets the riddle right, the player wins that amount. If the player gets the riddle wrong, the player loses that amount. Assume a total of five riddles, trivia questions, or math puzzles. For example. You have 100 coins, how many would you like to wager? Your bet: 10 What is the capital of Pennsylvania? Your guess: Harrisburg Correct! You have 110 coins, how many would you like to wager? Your bet: 50 What is the capita!f Vermont? Your guess: Burlington Incorrect! You have 60 coins, how many would you like to wager? etc. Possible upgrades. 1. 2. 3. 4. Increase to eight questions I Have the game end if the player loses all of their coins. Have the program reject the wager (and ask again) if the player tries to wager more coins than they have, or tries to wager a negative number of coins. Ask for the player's name at the beginning of the game, and use that name when asking the player for input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
