From 7a555d01a6a0fbe517afdfcd523826749faab014 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 24 Apr 2013 04:55:03 +0300 Subject: added leave function for n --- weatbag/tiles/n3w3.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'weatbag') diff --git a/weatbag/tiles/n3w3.py b/weatbag/tiles/n3w3.py index 42bec81..8ccf76f 100644 --- a/weatbag/tiles/n3w3.py +++ b/weatbag/tiles/n3w3.py @@ -24,3 +24,10 @@ class Tile: print("\nYou pick up the doorknob.") else: print("\nThere is nothing here.") + + def leave(self, player, direction): + if direction == "n": + print("Oops. You can't go there. There is a rocky wall.\n") + return False + else: + return True -- cgit v1.3