summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/n2w3.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-04-30 10:15:21 -0700
committerThomas Kluyver <takowl@gmail.com>2013-04-30 10:15:21 -0700
commite8676fe2073467b093af0abc8ccb19443ed4ecb7 (patch)
treec25d9794e1b8c77d70c2862f07f197fc0c69f067 /weatbag/tiles/n2w3.py
parente3612c7544341abf9e84234d4bda5f65ce8ee47a (diff)
parent3d626b5229add94f08acc3ae3731566507fc2f7e (diff)
Merge pull request #22 from ratmonkey/island_rebased
Island area
Diffstat (limited to 'weatbag/tiles/n2w3.py')
-rw-r--r--weatbag/tiles/n2w3.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/weatbag/tiles/n2w3.py b/weatbag/tiles/n2w3.py
new file mode 100644
index 0000000..2030fea
--- /dev/null
+++ b/weatbag/tiles/n2w3.py
@@ -0,0 +1,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("STAHP! Hammer Time!\n(Meaning you just can't go to that "
+ "direction yet. Sorry! :))\n")
+ return False
+ else:
+ return True