summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-24 01:59:58 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-29 03:21:17 +0300
commitdda68706253ebfeb6113ab764670309e2b347411 (patch)
tree53994845de9b1c22f0ef6db7683aaf9dd16c38ca /weatbag
parent916702cc66feb9fc8ba78e52a5f26eb9f404b7a7 (diff)
added leave function for w(sea) and w(cave)
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n3w1.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/weatbag/tiles/n3w1.py b/weatbag/tiles/n3w1.py
new file mode 100644
index 0000000..5eb7d18
--- /dev/null
+++ b/weatbag/tiles/n3w1.py
@@ -0,0 +1,17 @@
+class Tile:
+ def describe(self):
+ print("The beach is quiet. You see on the south children playing.")
+
+ def action(self, player, do):
+ print("Sorry, I don't understand")
+
+ def leave(self, player, direction):
+ if direction=='w':
+ print("I'm afraid you can't go west.\nThe sea on that part is "
+ "fool of electric eels and you don't have a transport.")
+ return False
+ elif direction=='e':
+ print("There is the side of a cave in front of you.\nYou can't go "
+ "east.")
+ return False
+ return True