Advertisement
dak0tah

simple game

Sep 14th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.17 KB | None | 0 0
  1. print "welcome to the labyrinth"
  2. z=0
  3.  
  4. x = raw_input("left, right, or straight?")
  5. if x=="left":
  6.     print "you fall in a pit and die?"
  7.     w=raw_input("heaven or hell?")
  8.     z=1
  9. elif x=="right":
  10.     print "you are struck dead by ants"
  11.     print "evil ants..."
  12.     w = raw_input("heaven or hell?")
  13.     z=2
  14. elif x=="straight":
  15.     print "you found ALL the treasure!!!"
  16.     z=3
  17. else:
  18.     print "you become completely lost"
  19.     print "and will probably starve to death"
  20.  
  21. if z==1 and w=="hell":
  22.     print "the pit leads STRAIGHT to hell"
  23. elif z==2 and w=="heaven":
  24.     print "the ants released your soul"
  25.     print "STRAIGHT to the above"
  26. elif z==0:
  27.     def riddle():
  28.         m=raw_input("when is a raven like a writing desk?")
  29.         if type(answer)==str:
  30.             return False
  31.         else:
  32.             return True
  33.     R=False
  34.     while not R:
  35.         if riddle()==True:
  36.             print "You finally escaped"
  37.             R=True
  38.         else:
  39.             print "You are just making things worse"
  40. elif z==3:
  41.     print "There are three doors! Pick one!"
  42.     b=["placeholder", "gold", "diamonds & rubies", "the ARK of the COVENANT"]
  43.     c=raw_input("Which door? (1, 2, or 3)")
  44.     print "The room is full of " +b[c]+ "!! pretty rad"
  45.  
  46. else:
  47.     print "you chose...poorly"
  48.     print "PURGATORY AWAITS"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement