blob: c9e82a9cf36f86ca5c4fdc118428b07dcb2d4e11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class Tile:
def describe(self):
print("\nYou are now on the island. In front of you there are some trees "
"and a small path.\nFeeling adventurous?")
def action(self, player, do):
print("Sorry, I don't understand")
def leave(self, player, direction):
if direction == "e":
print ("\nYou can't go back by swimming, that part is full of "
"electric eels.")
return False
else:
return True
|