i’m trying to make a game that rolls a thing and has a money counter that every tick/turn,it pops up a thing that says “you have (insert money here) spin the wheel?”
it keeps just printing the number instead of what the number equals.
this is what i’ve tried:
import os
import time
import random
money = 0
r = 0
11 == "nice 10 cash!"#adds 10 dollars
12 == "oof! barley missed jackpot!" #loose 10 dollars
13 == "$JACKPOT$!"#adds 100 dollars
14 == "OOOOFF!!!"#loose 50 dollars
15 == "nothing!"#nothing
16 == "nice 10 cash!"#adds 10 dollars
17 == "oof! barley missed jackpot!" #loose 10 dollers
18 == "nice 10 cash!"#adds 10 dollars
19 == "oof! barley missed jackpot!" #loose 10 dollars
20 == "nice 10 cash!"#adds 10 dollars
yes = "yes"
well = yes
play = 0
print ("welcome to the weel of fortune")
weel == input ("spin the weel? ")
while weel == yes:
r = random.randint(11,20)
time.sleep(1)
print (r)
New contributor
ghostey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.