blob: 1fc522db492c8ffac344a82aebf5c7a588850f71 (
plain)
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
|
class Tile:
def __init__(self):
self.challenge_completed = False
def describe(self):
print("\n")
if not self.challenge_completed:
self.challenge()
else:
print("")
def challenge(self):
print("\n")
pass
def action(self, player, do):
if not self.challenge_completed:
pass
else:
print("I don't understand...")
def leave(self, player, direction):
if direction == "s":
print("Oh dear Basdet! You can't go north, you will fall of the "
"cliff!\n")
return False
elif direction == "n":
print("It looks like the side of a wooden hut.\n"
"Since you don't walk though walls (yet) you can't go there.")
return False
else:
return True
|