Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.05 KB | None | 0 0
  1. def start():
  2.     print("You are on a deck. Treated, weatherproof wood stretches as far as the eye can see.")
  3.     print("It's hot and muggy outside. This is rather unpleasant.")
  4.     print("To your east is a covered patio, to your north is an aboveground pool with deck surrounding it.")
  5.     print("It's supposed to make it look like an in-ground pool. It doesn't work. It's still obviously")
  6.     print("A cheap, above-ground pool.")
  7.    
  8.     choice = input("Where do you go? > ")
  9.    
  10.     if "pool" in choice:
  11.         pool()
  12.     elif "patio" in choice:
  13.         patio()
  14.     else:
  15.         print("you decide to waste time typing nonsense in. Let's just try again. \n")
  16.         start()
  17.        
  18. def patio():
  19.     print("this is a covered portion of the deck. A patio. whatever.")
  20.     print("Around the edges of this are tiki-torch style citronella candles, stuck in planters. No plants though.")
  21.     print("There is a picnic table in the center, with a copper key and some glasses of lemonade on it.")
  22.     print("To the south is a shed. To the north is a barbecue grill.")
  23.     have_shed_key = False
  24.     have_candle = False
  25.     have_20_dollars = False
  26.    
  27.     while True:
  28.         choice = input("What do you do now?")
  29.    
  30.         if "lemonade" in choice or "glass" in choice:
  31.             print("the ice in it melted a long time ago. also there was a bee in it. still good though.\n")
  32.         elif "key" in choice:
  33.             print("It's glued down. Luckily you pried it up with your fingernails.")
  34.             print("You think to yourself that you probably should have needed to do more to unstick it.")
  35.             print("But then...sometimes things aren't that complicated.\n")
  36.             print("You got the key! Good job.")
  37.             have_shed_key = True
  38.         elif "candle" in choice or "citronella" in choice or "torch" in choice:
  39.             print("You unstick a tiki torch candle from the planter. Smells weird.\n")
  40.             have_candle = True
  41.         elif "shed" in choice or "south" in choice:
  42.             shed()
  43.             break
  44.         elif "grill" in choice or "barbecue" in choice or "north" in choice:
  45.             grill(have_candle)
  46.             break
  47.         else:
  48.             print("You decide to be a rebel and do something the program wasn't intended to do.")
  49.             print("This shows initiative. Well done. Have 20 dollars.\n")
  50.             have_20_dollars = True
  51.        
  52. def shed():
  53.     print("it's a shed")
  54.    
  55. def grill(have_candle):
  56.     ate_steak = False
  57.     while True:
  58.         if have_candle == True:
  59.             print("it's a grill. The smell of burning meat fills the air. You are kinda hungry.")
  60.             print("to the east is the pool you saw earlier. To the west, tons and tons of deck.")
  61.             choice = input("What now? > ")
  62.             if "eat" in choice or "meat" in choice:
  63.                 print("you eat the meat. Very filling. You can taste the factory farm antibiotics.")
  64.                 ate_steak = True
  65.             if "east" in choice or "tons" in choice:
  66.                 deck_desert()
  67.                 break
  68.             if "west" in choice or "pool" in choice:
  69.                 pool()
  70.                 break
  71.         if have_candle == False:
  72.             print("You are swarmed by mosquitos! You contract Malaria, West Nile Virus, and also are exsanguinated.")
  73.             dead()
  74.             break
  75.    
  76.    
  77. def pool():
  78.     print("You reach the edge of the pool. Several pool toys are floating around.")
  79.     print("There are some dead bugs around the intake for the filter.")
  80.     print("There's a strong smell of chlorine.")
  81.     print("To the east is a barbecue grill.")
  82.    
  83.     while True:
  84.         choice = input("What now? > ")
  85.    
  86.         if "swim" in choice and ate_steak == True:
  87.             print("You swam too soon after eating! You cramp up and drown.")
  88.             dead()
  89.             break
  90.         if "swim" in choice and ate_steak == False:
  91.             print("You dive in. Well, not dive. It's an aboveground pool and you'd break your neck. These pools suck.")
  92.             print("While clearing funoodles from your path, you see a conspicuous drain at the bottom of the pool.")
  93.         if "unplug" in choice or "drain" in choice:
  94.             drain()
  95.             break
  96.         if "east" in choice or "grill" in choice or "barbecue" in choice:
  97.             grill()
  98.             break
  99.         if "leave pool" in choice:
  100.             print("you get back out of the pool. Now your clothes are wet.")
  101.  
  102. def drain():
  103.     print("you get sucked down a drain")
  104.            
  105. def dead():
  106.     print("\nYou got DECK'D")
  107.     exit(0)
  108.    
  109. def deck_desert():
  110.     print("Miles and miles of KeefeI mean deck.")
  111.  
  112.    
  113. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement