def enter_cthulhu_room(): show_instructions() choice = raw_input("> ") if choice == "1": return elif choice == "2": dead("Well that was tasty!") else: enter_cthulhu_room()
def enter_gold_room(): show_instructions() choice = raw_input("> ") try: how_much = int(choice) except ValueError: dead("Man, learn to type a number.") else: if how_much < 50: print "Nice, you're not greedy, you win!" exit(0) else: dead("You greedy bastard!")
def start(): show_instructions() while True: choice = raw_input("> ") if choice == "1": enter_bear_room() elif choice == "2": enter_cthulhu_room() else: dead("Type a 1 or a 2 dummy. Start over.") show_instructions()