just like in my other question, this one is about that mining game i'm working on, there is a bug, when I run it it does this: when I test it
It closes the program instead of doing it over and over again, I want to create a loop, but I don't know how to create the type of loop for this type of problem. Help please?
here is the code: `
import random
start = raw_input("Welcome to the gold mine game! type 'start' to start playing ")
if str.upper(start) == ("START"):
default_cash = 14
print "you have %s cash" % default_cash
choices = raw_input("What would you like to do? type 'dig' to dig for ores or type 'shop' to buy equitment ")
if str.upper(choices) == ("DIG"):
ores = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing", "nothing", "nothing", "nothing", "nothing", "nothing", "iron", "iron", "iron", "iron", "silver", "silver", "gold"]
ores_random = random.choice(ores)
print "you found %s!" % ores_random`