blob: 7877139bb82f6b7a2fa2e502ceafe7f34fe86272 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
class Tile:
map_word = "Beach rocks"
def describe(self):
print("Rocks. Big rocks. Slippery rocks all over!\n")
def action(self, player, do):
print("Sorry, I don't understand.")
def leave(self, player, direction):
if direction == "w":
print("No-no! You'll break your head on the rocks down there!")
return False
elif direction == "s":
print("You follow the path uphill. Just be careful of the slippery "
"rocks.")
return True
elif direction == "n":
print("You are almost down at the beach.")
return True
else:
return True
|