Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- attempts = 0
- print "You walk into a room with six doors. There is a sign that says 'You have 3 attempts.' Do you enter door #1, door #2, door #3, door #4, door #5, or door #6?"
- global door
- def wtf():
- door = raw_input("> ")
- def question_v2():
- print "-" * 30
- print "I guess that didn't work out for you. You have %r attempts left. Do you go through door #1, door #2, door #3, door #4, door #5, or door #6? Please type the number, enter, type the number again and hit enter again to make your selection." % (3-attempts)
- door = raw_input("> ")
- def door1():
- global attempts
- attempts += 1
- print "There's a giant bear here eating a cheese cake. What do you do?"
- print "1. Take the cake."
- print "2. Scream at the bear."
- bear = raw_input("> ")
- if bear == "1":
- print "The bear eats your face off. Good job!"
- time.sleep(1.2)
- question_v2()
- elif bear == "2":
- print "The bear eats your legs off. Good job!"
- time.sleep(1.2)
- question_v2()
- else:
- print "Well, doing %s is probably better. The bear runs away! But you haven't won yet." % bear
- time.sleep(1.2)
- question_v2()
- def door2():
- global attempts
- attempts += 1
- print "You stare into the endless abyss at Cthulhu's retina."
- print "1. Blueberries."
- print "2. Yellow jacket clothespins."
- print "3. Understanding revolvers yelling melodies."
- insanity = raw_input("> ")
- if insanity == "1" or insanity == "2":
- print "Your body survives but is powered by a mind of jello."
- time.sleep(1.2)
- question_v2()
- else:
- print "The insanity rots your eyes into a pool of muck."
- time.sleep(1.2)
- question_v2()
- def door3():
- global attempts
- attempts += 1
- print "A wild possum is sitting in the room cross legged, eating an apple. He asks you why you are there in Pepuli, the language of Possums."
- print "1. You tell him that you are there for the job interview."
- print "2. You stand there, confused as to how a possum is talking and you are understanding it."
- print "3. You turn around and leave."
- ay_dios_mio = raw_input(">")
- if ay_dios_mio == "1":
- print "He proceeds to interview you for a job working with Python. After the interview, he notifies you that you got the job. Congratulations, you won!"
- win()
- elif ay_dios_mio == "2":
- print "The possum gets angry and rips your face off."
- time.sleep(1.2)
- question_v2()
- elif ay_dios_mio == "3":
- print "You trip on the way out and fall onto an apple, crushing it. It was the possum's. It gets angry and tears your legs to bits."
- time.sleep(1.2)
- question_v2()
- else:
- print "That wasn't one of the options."
- time.sleep(1.2)
- question_v2()
- def door4():
- global attempts
- attempts += 1
- print "You stub your toe on the door while walking in."
- print "1. You say a curse word."
- print "2. You wish for band-aid."
- print "3. You cry."
- mankdemes = raw_input(">")
- if mankdemes == "1":
- print "A large walrus shows up and smacks you for cursing."
- time.sleep(1.2)
- question_v2()
- elif mankdemes == "2":
- print "A large walrus shows up with a band-aid. He gives it to you, calls you an idiot, and leaves. You feel sad."
- time.sleep(1.2)
- question_v2()
- elif mankdemes == "3":
- "A large walrus shows up with a cheesecake. He says he stole it from a bear and offers it to you. You accept and eat it. You feel happy but stuffed. The walrus wishes you good luck and goes on his way."
- time.sleep(1.2)
- question_v2()
- def door5():
- global attempts
- attempts += 1
- print('After you open the door you fall into a well and then faint.')
- time.sleep(.2)
- print('.')
- time.sleep(.2)
- print('.')
- time.sleep(.2)
- print('.')
- time.sleep(.2)
- print('')
- question_v2()
- def door6():
- global attempts
- attempts += 1
- print "You walk into a dark room and with a single ray of light you see someone playing a game."
- time.sleep(1.2)
- question_v2()
- def win():
- time.sleep(1.2)
- print "-" * 30
- print "Congratulations! You have won with %r attempts left!" % (3 - attempts)
- exit(0)
- if door == "1":
- door1()
- elif door == "2":
- door2()
- elif door == "3":
- door3()
- elif door == "4":
- door4()
- elif door == "5":
- door5()
- elif door =="6":
- door6()
- else:
- global attempts
- attempts += 1
- print "You stumble around and fall on a knife and die. Good joab!"
- time.sleep(1.2)
- question_v2()
- while attempts <= 3:
- wtf()
- else:
- print "Game over. Please try again."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement