diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-07 19:11:17 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-07 19:11:17 +0300 |
| commit | 45e81ccdd430bd5e40e72c5a6d9661cac2820b48 (patch) | |
| tree | a876be3e98d7c0d47efd6168aebe5139a8fd11c0 /weatbag/tiles | |
| parent | 855703b189cb54829d7ca1bc651c0edb42017e1c (diff) | |
added new tile n1w4
Diffstat (limited to 'weatbag/tiles')
| -rw-r--r-- | weatbag/tiles/n1w4.py | 28 |
1 files changed, 28 insertions, 0 deletions
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 |
