From a31152c09fae64bee5a21913145b0a3f2511e94b Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Fri, 24 May 2013 01:05:33 +0300 Subject: wrote more efficient the words that do[] checks (n3w5) --- weatbag/tiles/n3w5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weatbag/tiles/n3w5.py') diff --git a/weatbag/tiles/n3w5.py b/weatbag/tiles/n3w5.py index 26aec4d..e117bcf 100644 --- a/weatbag/tiles/n3w5.py +++ b/weatbag/tiles/n3w5.py @@ -31,7 +31,7 @@ class Tile: # What the riddle says is "No one understands" def action(self, player, do): - if do[0] == "no" and do[1] == "one" and do[2] == "understands": + if do == ["no", "one", "understands"]: print("And that is absolutely right!\n" "The lid opens and you see a brand new army knife!\n") self.challenge_completed = True -- cgit v1.3