Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Functions
- def treasure_room():
- print "YOU WIN"
- def dungeon_room():
- print "This creepy room, may appear scary but is the last room,"
- print "that is in the way of you and potentially all the money:"
- print "\tthe inscription asks 'how much thy taketh from the tomb'"
- taketh = float(input("> "))
- if taketh <= '50':
- treasure_room()
- elif taketh > '50':
- trap2()
- else:
- entrance()
- def entrance():
- while True:
- print "Welcome to the entrance of the mansion,"
- print "this is where you must decide which path"
- print "that you are willing to go down."
- print "[1] Left or [2] Right"
- path = int(raw_input("> "))
- if path == '1':
- dungeon_room()
- exit(0)
- elif path == '2':
- trap2()
- exit(0)
- else path == not('1' or '2'):
- print "Please select one of the options"
- entrance()
- exit(0)
- def trap1():
- #
- def trap2():
- #
- # MENU
- menu = """
- /t[1] EXIT
- /t[2] EXIT
- """
- print menu
- # User Selection
- option = int(raw_input("> "))
- print option
- if option == '1':
- entrance()
- elif option == '2':
- trap1()
- else option != '1' or '2':
- print "Please select one of the options [1] or [2]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement