diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-23 15:20:06 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-23 15:20:06 +0300 |
| commit | d9d5b16dc1c6c0ba39cff8641858bdd0d2642f83 (patch) | |
| tree | d1a51c72ec44bb8cc2b8db0434036f98af938766 | |
| parent | 370d19e493d9cd74fa15cd1580b7b7a5246a602f (diff) | |
wrote more efficient the words that do[] checks (n5w7)
| -rw-r--r-- | weatbag/tiles/n5w7.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weatbag/tiles/n5w7.py b/weatbag/tiles/n5w7.py index f38501c..face836 100644 --- a/weatbag/tiles/n5w7.py +++ b/weatbag/tiles/n5w7.py @@ -54,10 +54,10 @@ class Tile: def action(self, player, do): if self.trapped: - if do[0]=="you" and do[1]=="will" and do[2]=="hang" and do[3]=="me": + if do == ["you","will","hang","me"]: print("You dirty little human, I can only let you go now!\n") self.trapped = False - elif do[0]=="you" and do[1]=="will" and do[2]=="not" and do[3]=="shoot" and do[4]=="me": + elif do == ["you","will","not","shoot","me"]: print("You dirty little human, I can only let you go now!\n") self.trapped = False else: |
