summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-05-07 19:11:17 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-05-07 19:11:17 +0300
commit45e81ccdd430bd5e40e72c5a6d9661cac2820b48 (patch)
treea876be3e98d7c0d47efd6168aebe5139a8fd11c0
parent855703b189cb54829d7ca1bc651c0edb42017e1c (diff)
added new tile n1w4
-rw-r--r--weatbag/tiles/n1w4.py28
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