From 5774fb83d9139831a5cf1fb0cc6ff3f475d3d9ff Mon Sep 17 00:00:00 2001 From: George Angelopoulos Date: Sun, 21 Apr 2013 20:26:56 +0300 Subject: Changed They way I check for bug presence. It's simpler and more readable now. --- weatbag/tiles/s1e1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'weatbag/tiles') diff --git a/weatbag/tiles/s1e1.py b/weatbag/tiles/s1e1.py index a29c2d2..854bedd 100644 --- a/weatbag/tiles/s1e1.py +++ b/weatbag/tiles/s1e1.py @@ -4,7 +4,7 @@ import weatbag class Tile: def __init__(self): - self.contents = {'bug': 1} + self.bug_is_here = True self.first_visit = True self.hasnt_gone_south = True pass @@ -13,10 +13,10 @@ class Tile: print("There is a stream here. " "It runs from South to North.") - if self.contents['bug'] > 0: + if self.bug_is_here: print("You see a huge, ugly bug rush past you, " "following the river South.") - self.contents['bug'] -= 1 + self.bug_is_here = False else: print("You remember this is where you saw that bug going South.") -- cgit v1.3