summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-04-30 16:25:55 -0700
committerThomas Kluyver <takowl@gmail.com>2013-04-30 16:25:55 -0700
commit8cdd5546c6993898e6d319853ab6c7e639ab7bf0 (patch)
tree07ffd6c5f76041f849d8028f130faf23b950972a /weatbag/tiles
parente8676fe2073467b093af0abc8ccb19443ed4ecb7 (diff)
parent689563831f55feaa4315c66773b63a49a93c70b9 (diff)
Merge pull request #23 from lathan/yesno
added yes/no words. Modified n2w2 to use words.
Diffstat (limited to 'weatbag/tiles')
-rw-r--r--weatbag/tiles/n2w2.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/weatbag/tiles/n2w2.py b/weatbag/tiles/n2w2.py
index 31e3cff..010ff0e 100644
--- a/weatbag/tiles/n2w2.py
+++ b/weatbag/tiles/n2w2.py
@@ -1,3 +1,5 @@
+from weatbag import words
+
class Tile:
def __init__(self):
self.first_visit = True
@@ -13,9 +15,9 @@ class Tile:
print("The beach is quiet. Nothing seems to be going on.")
def action(self, player, do):
- if do[0] in ('Yes', 'yes', 'y', 'Y', 'Yup', 'yup', 'ye', 'Ye'):
+ if do[0] in words.yes:
print("Awesome! Follow the path!")
- elif do[0] in ('No', 'no', 'n', 'N', 'Nope', 'nope'):
+ elif do[0] in words.no:
print("You might be in the wrong place then. Pack your stuff and "
"quit the game.")
else: