Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago