diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-29 03:00:31 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-29 03:21:18 +0300 |
| commit | 6625fb75dcb2c1cfc5bb8d4e81225dfc59fc026f (patch) | |
| tree | b63cb0e542f3c292fd4abe97cdd911e02e972db5 /weatbag | |
| parent | ae6b24f12f88262e00eacb36935ffb0ee0c2f103 (diff) | |
customized describe function on n2w3
Diffstat (limited to 'weatbag')
| -rw-r--r-- | weatbag/tiles/n2w3.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/weatbag/tiles/n2w3.py b/weatbag/tiles/n2w3.py index 9660dc4..85ca7f1 100644 --- a/weatbag/tiles/n2w3.py +++ b/weatbag/tiles/n2w3.py @@ -1,13 +1,20 @@ 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 you " - "took leads to a small wooden hut.\nYou saw a tree fall and it " - "didn't make any sound and WOW... that was weired because you " - "were there and observed it!\n") + "took 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 weired 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?!") |
