Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. #Lost In the Woods - A simple text based game
  2. from sys import exit
  3.  
  4. def start():
  5. print "You are in the middle of the woods alone and scared!"
  6. print "There is no one around but yourself."
  7. print "You look around and wonder....."
  8. print "What will you do?"
  9. print "1.move forwardn2.stay still"
  10.  
  11. choice = raw_input("> ")
  12.  
  13. if "move" in choice:
  14. bear_fight()
  15. else:
  16. print "Well your still at the same spot."
  17. start()
  18.  
  19. def bear_fight():
  20. print "Ahead of you is a huge hungry bear with razor sharp claws"
  21. print "Hes looks angry too!"
  22. print "Do you....."
  23. print "1.throw rockn2.play deadn3.run awayn"
  24.  
  25. choice = raw_input("> ")
  26.  
  27. if "run" in choice:
  28. print "Duhhh.... Did you think you can out run a bear?"
  29. dead("The bear catches up and has you for dinner, Good Job")
  30. elif "play dead" in choice:
  31. print "The bear laughs at you and chews but off."
  32. dead("You lost your but and lost this game")
  33. else:
  34. print "You deafted the bear with a rock! Hows that possible?"
  35. print "Anyways, You contine to move forward untill......"
  36. cabins()
  37.  
  38. def cabins():
  39. print "You come acroos two cabins."
  40. print "One of the left and one on the right"
  41. print "Whcih cabin do you pick?"
  42. print "1.leftn2.rightn"
  43.  
  44. choice = raw_input("> ")
  45.  
  46. if "left" in choice:
  47. cabin_one()
  48. else:
  49. cabin_two()
  50.  
  51. def cabin_two():
  52. print "You apprach the cabin on the right."
  53. print "You notice a note on the cabin door."
  54. print "Will you......"
  55. print "1.read the noten2.open the door"
  56.  
  57. choice = raw_input("> ")
  58.  
  59. if "read" in choice:
  60. letter = open("note.txt", 'r')
  61. print letter.read()
  62. letter.close()
  63. for count in range(10, 0, -1):
  64. print count
  65. dead("The cabin explodes and you die")
  66. else:
  67. print "As you walk into the cabin"
  68. print "You slip on a toy car and crack you skull!"
  69. dead("Good job, mabey you should have read the note first!")
  70.  
  71. def cabin_one():
  72. print "You enter the cabin and decide to spend then night."
  73. print "You wake up the next morning and go outside."
  74. print "You notice the bight sun and a dustty trail on the ground."
  75. print "Will you follow the sun or follow the trail"
  76. print "1.follow sunn2.follow trail"
  77.  
  78. choice = raw_input("> ")
  79.  
  80. if "sun" in choice:
  81. the_sun()
  82. else:
  83. the_path()
  84.  
  85. def the_sun():
  86. print "You sweet to death and die!"
  87. dead("Follow the path next time dummy")
  88.  
  89. def the_path():
  90. print "the path leads to a long road."
  91. print "How will you get home from here?"
  92. print "1.hich-hiken2.walk the road"
  93.  
  94. choice = raw_input("> ")
  95.  
  96. if "hich" in choice:
  97. print "No bobdy comes for you."
  98. dead("You starve to death and die")
  99. else:
  100. print "You see civiliztion and stop at the first buger king."
  101. win("Congrats you win this silly game!")
  102.  
  103. def dead(msg):
  104. print msg + "!!!"
  105. exit(0)
  106.  
  107. def win(msg):
  108. print msg
  109. exit(0)
  110.  
  111. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement