From 45e81ccdd430bd5e40e72c5a6d9661cac2820b48 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 19:11:17 +0300 Subject: added new tile n1w4 --- weatbag/tiles/n1w4.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 weatbag/tiles/n1w4.py (limited to 'weatbag') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py new file mode 100644 index 0000000..13b288e --- /dev/null +++ b/weatbag/tiles/n1w4.py @@ -0,0 +1,28 @@ +class Tile: + def __init__(self): + self.challenge_completed = False + + def describe(self): + print("\n") + if not self.challenge_completed: + self.challenge() + else: + print("") + + def challenge(self): + print("\n") + pass + + def action(self, player, do): + if not self.challenge_completed: + pass + else: + print("I don't understand...") + + def leave(self, player, direction): + if direction == "s": + print ("Oh dear Basdet! You can't go north, you will fall of the " + "cliff!\n") + return False + else: + return True -- cgit v1.3