First i know this is in the wrong place and I am sorry but im stumped
I took a class in intro to game programing and we have started to program our first text base adventure game using Python 2.6 . For some weird reason i cant get this dame program to recognize my choices as actions .
for example
def gamestart():
start_text = """
Your a hamster about to start on a great adventure.
You are tired with you life in the cage and want to explore so you plan to escape
and start on your great adventure
"""
print start_text
global choice
select = raw_input("Choose 'w' to wait for nightfall or 'e' to escape in bawd daylight or 'r' to run on your hamster wheel and discover the hamster power !!! : ")
if select == "e":
choice = "escape"
elif select == "w":
choice = "wait"
elif select == "r":
choice = "run"
else:
print "thats not a good choice lets look at other options"
gamestart()
"""
Escape: Your owner sees you pull this stunt seals the hole back in the cage you go.
"""
def escape(escape):
escape = """
escape:you attempt to sneak out of a fresh gnawed hole in an attempt to escape the confines of your cage
whoops your owner sees you back in the cage you go.
"""
if escape == "escape":
print escape1
global lifenumber
lifenumber -= 1
print "You only have %d lives left!" % lifenumber
gamestart()
Any of my choices causes it to go to this
you chose blah
you chose blah
you chose blah
you chose blah
you chose blah
you chose blah
you chose blah
you chose blah
you chose blah
you chose blah
you chose blah
There is something i am missing i get that i just don't know what and my teacher said in class He don't work on weekends we will not respond to e-mail or phone calls
so im hitting the forms in hopes some one will help/ teach me what the beep im doing wrong this issue is driving me insane!!!!
Ill admit, The first issue I had took me , the teacher and 2 different debuggers and still nothing. Late at night I pulled up an example text and realized the error fixed it and now i got this and the format is identical to a working program so its got to be a space or something i am missing Please help
Devs ?
any one ?