-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday3_treasure_island.py
More file actions
41 lines (41 loc) · 2.51 KB
/
day3_treasure_island.py
File metadata and controls
41 lines (41 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.\nYour mission is to find the treasure.')
left_right = input('You are at a crossroad, where do you want to go?\n Type "left" or"right"').lower()
print(left_right)
if left_right == "right":
print("Fall into a hole.\n Game Over")
elif left_right == "left":
swim_boat = input("You have come to a lake. There is an an island in the middle of the lake.\n Type 'wait' to wait for a boat. Type 'swim' to swim across").lower()
print(swim_boat)
if swim_boat == "swim":
print("Attacked by trout\n Game Over")
elif swim_boat == "wait":
color = input("You arrive at the island unharmed. There is a house with 3 doors.\n One red, one yellow and one blue.\nWhich color do you choose?").lower()
print(color)
if color == "red":
print("Burned by fire.\n Game Over")
elif color == "yellow":
print("You Win!!!")
elif color == "blue":
print("Eaten by beasts.\n Game Over")
else:
print("Game Over")