Return to site

Simple roulette game using 2 classes

broken image
broken image

# Winning on a red or black bet is 2 times the amount of money bet # Winning on a green bet is 35 times the amount of money bet # Asks user how many tokens should be betīetamount=int(input('How many tokens would you like to bet?'))īetcolor=int(input('Bet on red (enter 1), black (enter 2), or green (enter 3)?')) # Game goes on until balance is 0, then the for loop breaks Print('Your balance is now '+ str(balance)+' tokens.') # Function that should occur when any bet is lost # Function that should occur when a win takes place on red or black Print('Your balance is now '+ str(balance)+' tokens. Print('The roll was a ' + str(roll) +'.') # Function that should occur when a win takes place on green Print('Your starting balance is $50, or 5000 tokens.') Print('Welcome to my Online Roulette game!')

broken image