From d6160c24f1d610a0dcf8051ece77b9c5b25e86a1 Mon Sep 17 00:00:00 2001 From: George Angelopoulos Date: Sat, 20 Apr 2013 23:22:27 +0300 Subject: leave restrictions for s2e1 --- weatbag/tiles/s1e1.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'weatbag') diff --git a/weatbag/tiles/s1e1.py b/weatbag/tiles/s1e1.py index ad98ad1..f44f4cd 100644 --- a/weatbag/tiles/s1e1.py +++ b/weatbag/tiles/s1e1.py @@ -22,7 +22,12 @@ class Tile: pass def leave(self, player, direction): - if direction == 's': + restricted_directions = { 'w', 'e' } + if direction in restricted_directions: + print("The undergrowth in that direction " + "is impassable. You turn back.") + return False + elif direction == 's': print("Bugs are the enemy and must be crushed!\n" "So you decide to follow the bug upstream.") input() -- cgit v1.3