From ffcfa7a693ced1a1d1b7387d31970559ed1842a7 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 15 May 2013 02:52:47 +0300 Subject: leave function for n5w5 --- weatbag/tiles/n5w5.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'weatbag/tiles/n5w5.py') diff --git a/weatbag/tiles/n5w5.py b/weatbag/tiles/n5w5.py index 5d6bc5a..8d7b4b5 100644 --- a/weatbag/tiles/n5w5.py +++ b/weatbag/tiles/n5w5.py @@ -30,10 +30,18 @@ class Tile: player.give("cream") self.challenge = True elif do[0] in words.take and do[1]=="cream": - print("Don't be greedy, you have all the cream you're gonna need.") + print("Don't be greedy, you have all the cream you're gonna " + "need.\n") else: print("I don't understand.\n") - - -#sandy claws + def leave(self, player, direction): + if direction in ("n", "e"): + print("It's the open sea. You can't go anywhere near by " + "swimming.\n") + return False + elif direction == "s": + print("A bunch of pine trees...") + return True + else: + return True -- cgit v1.3