Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using PYTHON Create a casino. Write a program that lets a user play a number guessing game, craps or roulette. Start your user with $500

Using PYTHON Create a casino. Write a program that lets a user play a number guessing game, craps or roulette. Start your user with $500 and let them play until they are busted (out of money) or they choose to quit. The rules for the number guessing game and craps have been established in prior assignment, and you should define your solutions to those problems as separate functions (playNumberGuess(), playCraps()). You will need to create a new function for roulette (playRoulette()), and the instructions for that function are below. All three functions should accept a bet as an input parameter and should return the payout.

Roulette Instructions: In roulette, the user will place a bet and the dealer will drop the ball on a spinning wheel. Though there are more betting options in at an actual roulette table, you will be accepting the outside bets of Even, Odd, Red, Black, High, Low, Dozens (First, Second, Third), and Columns (1, 2, 3) (The user can only bet on one). Once the user decides where to place their bet, drop the ball and report the result. Payouts for all winning conditions are below.

image text in transcribed

Examples given:image text in transcribed

image text in transcribed

Payouts Triple Money (2:1)Double Money (1:1) Money Back (0:1) Third Guess Number Guess Craps First Guess Second Guess Win First 12, Second 12, hird 12, Column 1 Column 2, Column 3 , Odd, Red, laaclk, Roulette High, Payouts Triple Money (2:1)Double Money (1:1) Money Back (0:1) Third Guess Number Guess Craps First Guess Second Guess Win First 12, Second 12, hird 12, Column 1 Column 2, Column 3 , Odd, Red, laaclk, Roulette High

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago