diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-14 04:09:21 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-14 04:09:21 +0300 |
| commit | a85623efc76535b6260a7abb2283b5399a697c23 (patch) | |
| tree | 8615a1432ef0d0d5e27faf847361f91a538e3aea | |
| parent | 69ef57ced38a1eb487e88fe0162f312d22369d1e (diff) | |
added leave function (n3w5)
| -rw-r--r-- | weatbag/tiles/n3w5.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/weatbag/tiles/n3w5.py b/weatbag/tiles/n3w5.py index 819fd77..7045620 100644 --- a/weatbag/tiles/n3w5.py +++ b/weatbag/tiles/n3w5.py @@ -42,3 +42,11 @@ class Tile: print("You take the knife.\n") else: print("There is nothing here.\n") + + def leave(self, player, direction): + if direction == "s": + print("In front of you there is a wall. It's the side of a wooden " + "hut.") + return False + else: + return True |
