Advertisement
JkSoftware

Day 3 - Challenge Treasure Island Game

Nov 6th, 2021 (edited)
1,164
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print('''
  2. *******************************************************************************
  3.          |                   |                  |                     |
  4. _________|________________.=""_;=.______________|_____________________|_______
  5. |                   |  ,-"_,=""     `"=.|                  |
  6. |___________________|__"=._o`"-._        `"=.______________|___________________
  7.          |                `"=._o`"=._      _`"=._                     |
  8. _________|_____________________:=._o "=._."_.-="'"=.__________________|_______
  9. |                   |    __.--" , ; `"=._o." ,-"""-._ ".   |
  10. |___________________|_._"  ,. .` ` `` ,  `"-._"-._   ". '__|___________________
  11.          |           |o`"=._` , "` `; .". ,  "-._"-._; ;              |
  12. _________|___________| ;`-.o`"=._; ." ` '`."\` . "-._ /_______________|_______
  13. |                   | |o;    `"-.o`"=._``  '` " ,__.--o;   |
  14. |___________________|_| ;     (#) `-.o `"=.`_.--"_o.-; ;___|___________________
  15. ____/______/______/___|o;._    "      `".o|o_.--"    ;o;____/______/______/____
  16. /______/______/______/_"=._o--._        ; | ;        ; ;/______/______/______/_
  17. ____/______/______/______/__"=._o--._   ;o|o;     _._;o;____/______/______/____
  18. /______/______/______/______/____"=._o._; | ;_.--"o.--"_/______/______/______/_
  19. ____/______/______/______/______/_____"=.o|o_.--""___/______/______/______/____
  20. /______/______/______/______/______/______/______/______/______/______/_____ /
  21. *******************************************************************************
  22. ''')
  23. print("Welcome to Treasure Island.")
  24. print("Your mission is to find the treasure.")
  25.  
  26. #https://www.draw.io/?lightbox=1&highlight=0000ff&edit=_blank&layers=1&nav=1&title=Treasure%20Island%20Conditional.drawio#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D1oDe4ehjWZipYRsVfeAx2HyB7LCQ8_Fvi%26export%3Ddownload
  27.  
  28. #Write your code below this line
  29.  
  30. opt = input(
  31.     "You enter a hallway, will you go left or right?"
  32. ).lower()
  33.  
  34. if opt != "left":
  35.     print(
  36.         "You fell through the dilapidated floor, your trapped and end up starving down there."
  37.     )
  38.    
  39. opt = input(
  40.     "The hallway suddenly changes into a lake, you see a light in the distance, shall you attempt to swim accross or wait for the light?"
  41. ).lower()
  42. if opt != "wait" or opt != "light":
  43.     print(
  44.         "There were creatures that appeared suddenly and dragged you to the bottom to drown"
  45.     )
  46.  
  47. opt = input(
  48.     "The light turned out to be a boat. It got you accross and now you see three doors, red, yellow, and blue, which do you choose?"
  49. ).lower()
  50. if opt != "red":
  51.     print(
  52.         "Once you touched the handle the door flew open and dragged you into the flames inside."
  53.     )
  54.  
  55. if opt != "blue":
  56.     print(
  57.         "You open the door and walk through the peaceful meadow on the other side. You get to the nearest village and walk into the inn. Once inside you realize this is no ordinary inn and it is filled with vile creatures who instantly pounced"
  58.     )
  59.  
  60. if opt != "yellow":
  61.     print(
  62.         "You open the door to your final destination!\nYou finally made it to Bob Evans!"
  63.     )
  64. else:
  65.     print(
  66.         "You hear a thud, look next to you to see your worst nightmare, you have a heart attack!"
  67.     )
  68.  
  69.  
  70.  
  71.  
  72.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement