From a85623efc76535b6260a7abb2283b5399a697c23 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 14 May 2013 04:09:21 +0300 Subject: added leave function (n3w5) --- weatbag/tiles/n3w5.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.3