So I'm trying to write a text based adventure game and there are going to be points where you'll have to travel back to previous rooms. I wasn't really sure of the best way to go about this. Also along the way you'll collect 3 keys and various loot. any help would be great. thanks -Matt
Code:
#Doors test
def main():
endprogram = 'no'
while endprogram == "no"
health = 100
loot = 0
key1='no'
key2='no'
key3='no'
print "Welcome to Three Keys"
print "++++++++++++++++"
print "All choices are to be typed in lowercase"
print "Find the three keys to access the treasure"
print "There are many dangers and secrets to find"
print "Be mindful of hints and keep your wits about you"
def firstroom():
print "Before you you see three doors
def armory():
def library():
def baths():
def keyroom1():
def keyroom2():
def keyroom3():
def dinning():
def spiral():
def dungeon():
def throneroom():
Comment