반응형
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.")
first_answer = input('left or right').lower()
if first_answer == 'left':
second_answer = input('swim or wait').lower()
if second_answer == 'wait':
third_answer = input('which door').lower()
if third_answer == 'red':
print('Burned. Game over')
elif third_answer == 'blue':
print('Eaten by beasts. Game Over')
elif third_answer == 'yellow':
print('you win!')
else:
print('Game Over')
else:
print('Attacked by trout. Game Over')
else:
print("Fall into a hole. Game Over")
반응형
'파이썬 > exercise' 카테고리의 다른 글
4-2. python nested list 보물지도 (0) | 2023.01.03 |
---|---|
4-1. python random module, 동전 앞 뒤 무작위 (0) | 2023.01.03 |
3-3 python love calulator (0) | 2022.12.27 |
3-2 python Pizza calculator (0) | 2022.12.27 |
2-3 python tip calculator (0) | 2022.12.27 |