From 670811201c625f6269dd9bdd1689c03f72e99537 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 24 Apr 2013 02:49:05 +0300 Subject: added leave function for S --- weatbag/tiles/n2w2.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'weatbag/tiles') diff --git a/weatbag/tiles/n2w2.py b/weatbag/tiles/n2w2.py index c9e82a9..f390994 100644 --- a/weatbag/tiles/n2w2.py +++ b/weatbag/tiles/n2w2.py @@ -1,15 +1,18 @@ class Tile: def describe(self): - print("\nYou are now on the island. In front of you there are some trees " - "and a small path.\nFeeling adventurous?") + print("You are now on the island. In front of you there are some trees " + "and a small path.\nFeeling adventurous?\n") def action(self, player, do): print("Sorry, I don't understand") def leave(self, player, direction): if direction == "e": - print ("\nYou can't go back by swimming, that part is full of " - "electric eels.") + print("You can't go back by swimming, that part is full of " + "electric eels.\n") + return False + elif direction == "s": + print("I'm afraid I can't let you go there Dave.\n") return False else: return True -- cgit v1.3