print('''
*******************************************************************************
          |                   |                  |                     |
 _________|________________.=""_;=.______________|_____________________|_______
|                   |  ,-"_,=""     `"=.|                  |
|___________________|__"=._o`"-._        `"=.______________|___________________
          |                `"=._o`"=._      _`"=._                     |
 _________|_____________________:=._o "=._."_.-="'"=.__________________|_______
|                   |    __.--" , ; `"=._o." ,-"""-._ ".   |
|___________________|_._"  ,. .` ` `` ,  `"-._"-._   ". '__|___________________
          |           |o`"=._` , "` `; .". ,  "-._"-._; ;              |
 _________|___________| ;`-.o`"=._; ." ` '`."\` . "-._ /_______________|_______
|                   | |o;    `"-.o`"=._``  '` " ,__.--o;   |
|___________________|_| ;     (#) `-.o `"=.`_.--"_o.-; ;___|___________________
____/______/______/___|o;._    "      `".o|o_.--"    ;o;____/______/______/____
/______/______/______/_"=._o--._        ; | ;        ; ;/______/______/______/_
____/______/______/______/__"=._o--._   ;o|o;     _._;o;____/______/______/____
/______/______/______/______/____"=._o._; | ;_.--"o.--"_/______/______/______/_
____/______/______/______/______/_____"=.o|o_.--""___/______/______/______/____
/______/______/______/______/______/______/______/______/______/______/_____ /
*******************************************************************************
''')
print("Welcome to Treasure Island.")
print("Your mission is to find the treasure.") 

#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

firstChoice = input('Your are at the cross road . Where do you want to go? Type "left" or "right"\n')
firstChoiceLower = firstChoice.lower()
if firstChoiceLower == "left": 
    secondChoice = input('You reached a lake. You see an island in the middle of the lake. How would you like to go there? Type "wait" to wait for a boat or "swim" to swim across\n' )
    secondChoiceLower = secondChoice.lower()
    if secondChoiceLower == "wait":
      thirdChoice = input('''You arrive at the island. There is a castle. There are three gates. Which one do you choose? "red", "yellow" or "blue"\n ''')
      thirdChoiceLower = thirdChoice.lower()
      if thirdChoiceLower == "yellow":
        print("Congratulation!!! You found the treasure")        
      elif thirdChoiceLower == "red":
        print("You were eaten by angry dragons.Game over")        
      elif thirdChoiceLower == "blue":
        print("You were eaten by angry birds.Game over")
      else :
        print("You was captured and tortured to death by Ghost") 
    else:
      print('You were attacked by angry octopus.Game over')  

else: 
  print("You was attacked by angry dogs. Game over")
