Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. from sys import exit
  2.  
  3. def gold_room():
  4. print "This room is full of gold. How much do you take?"
  5.  
  6.  
  7.  
  8. """
  9. next = raw_input('> ')
  10. try:
  11. how_much = int(next)
  12. except ValueError:
  13. dead('man, learn how to type a number')
  14. """
  15. next = raw_input("> ")
  16. if "0" in next or "1" in next:
  17. how_much = int(next)
  18. else:
  19. dead("Man, learn to type a number.")
  20.  
  21. if how_much < 50:
  22. print "Nice, you're not greedy, you win!"
  23. exit(0)
  24. else:
  25. dead("You greedy bastard!")
  26.  
  27.  
  28. def bear_room():
  29. print "There is a bear here."
  30. print "The bear has a bunch of honey."
  31. print "The fat bear is in front of another door."
  32. print "How are you going to move the bear?"
  33. bear_moved = False
  34.  
  35. while True:
  36. next = raw_input("> ")
  37.  
  38. if next == "take honey":
  39. dead("The bear looks at you then slaps your face off.")
  40. elif next == "taunt bear" and not bear_moved:
  41. print "The bear has moved from the door. You can go through it now."
  42. bear_moved = True
  43. elif next == "taunt bear" and bear_moved:
  44. dead("The bear gets pissed off and chews your leg off.")
  45. elif next == "open door" and bear_moved:
  46. gold_room()
  47. else:
  48. "I got no idea what that means."
  49.  
  50.  
  51. def cthulhu_room():
  52. print "Here you see the great evil Cthulhu."
  53. print "He, it, whatever stares at you and you go insane."
  54. print "Do you flee for your life or eat your head?"
  55.  
  56. next = raw_input("> ")
  57.  
  58. if "flee" in next:
  59. start()
  60. elif "head" in next:
  61. dead("Well that was tasty!")
  62. else:
  63. cthulhu_room()
  64.  
  65. def nigger_room():
  66. print "You enter a room full of niggers, what do you do?"
  67.  
  68. next = raw_input("> ")
  69.  
  70. if next == "kill":
  71. print "Congrats you kill those niggers!"
  72. gold_room()
  73. elif next == "stay":
  74. dead("The niggers kill you.")
  75. else:
  76. print "lolwut"
  77.  
  78. def dead(why):
  79. print "Death!"
  80. print why, "Good job!"
  81. exit(0)
  82.  
  83. def start():
  84. print "You are in a dark room."
  85. print "There is a door to your right and left and a strange light straight."
  86. print "Which one do you take?"
  87.  
  88. next = raw_input("> ")
  89. if next == "left":
  90. bear_room()
  91. elif next == "right":
  92. cthulhu_room()
  93. elif next == "straight":
  94. nigger_room()
  95. else:
  96. dead("You stumble around the room until you starve.")
  97.  
  98.  
  99. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement