blob: 4e6707bcca27af6ae56f3768a87cfe39f339021e (
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
|
class Tile:
def __init__(self):
self.first_visit = True
self.tree_fallen = False
def describe(self):
print("You are walking through the trees. It looks like the path on "
"your west leads to a small wooden hut.\n")
if not self.first_visit and not self.tree_fallen:
print("You saw a tree fall and it didn't make any sound and "
"WOW... that was weird because you were there and "
"observed it!\n")
self.tree_fallen = True
self.first_visit = False
# "If a tree falls in a forest and no one is around to hear it,
# does it make a sound?" is a philosophical thought experiment that
# raises questions regarding observation and knowledge of reality.
def action(self, player, do):
print("Wat?!")
def leave(self, player, direction):
if direction == "s":
print("Careful now! Nasty rocks all over to the south.\n"
"(Meaning you just can't go to that direction. Sorry!)")
return False
else:
return True
|