Treasure island
Mon Sep 25 2023 19:17:18 GMT+0000 (Coordinated Universal Time)
Saved by @Duhita0209
print(''' ******************************************************************************* | | | | _________|________________.=""_;=.______________|_____________________|_______ | | ,-"_,="" `"=.| | |___________________|__"=._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.") l_or_r = input("You're at a crossroad. Where do you want to go type 'left' or 'right'.\n ").lower() if l_or_r == 'right': s_or_w = input("You are at a lake do you want swim across it or wait for a boat type 'swim' or 'wait'.\n ").lower() if s_or_w == 'swim': doors = input("You arrived at a island unharmed. There is a house with three doors 'red', 'blue' and 'yellow' which color do you want to choose.\n ").lower() if doors == 'red': print("You are burned by fire. Game Over.") elif doors == 'blue': print("You are eaten by Vampires. Game Over.") elif doors == 'yellow': print("YAY you WIN!! You found the Treasure, there is lots of Gold, Money and Gifts in that room.") elif s_or_w == 'wait': print("Your boat has been attacked by piranahas. Game Over.") elif l_or_r == 'left': print("You fell into a hole. Game Over.")
Comments