blob: ab2da247b6bf564400b61227522ad157393b5244 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
class Tile:
def describe(self):
print("You have reached the top of the cliff! You feel the fresh "
"breeze in your face and you smell the salty sea! The view and "
"the weather here are wonderful! You'd like to stay but the "
"adventure spirit shakes you and you're on the move again.\n"
"So which way?\n")
def action(self, player, do):
print("Sorry, I don't understand.\n")
def leave(self, player, direction):
if direction in ('s', 'w'):
print("My dear traveler, you can't go there, you will fall of the "
"cliff!\n")
return False
elif direction in('e', 'n'):
print("You follow tha path downhill.")
return True
|