# If your balance is 0 for loop breaks and game ends # Subtracts what you bet from your balance # Lists winning numbers for red and black ![]() # 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!")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |