From 3c5b891a716f942708109339944701cc03f957b5 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 20:27:24 +0300 Subject: added else inside action for when the player says something else except the solution of the riddle --- weatbag/tiles/n1w4.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index d3a9c2b..984063e 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -34,7 +34,7 @@ class Tile: #To describe 11, you have two 1's, or 21. Now you have one 2 and one 1, #so the next number is 1211. The solution is to simply continue #describing the previous number using only numbers.\n") - + def action(self, player, do): if not self.challenge_completed: if do[0] == self.sequence: @@ -46,6 +46,8 @@ class Tile: self.contents['neko'] -= 1 player.give('neko') self.challenge_completed = True + else: + print("Wut? Try h4rd3r st00p3d hum4n!") else: print("I don't understand...") -- cgit v1.3