Question
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.
Examples given:
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 HighStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started