From a8f546c55b80d05b251c055ef57caab8b0b0a2d7 Mon Sep 17 00:00:00 2001 From: Peter Ward Date: Fri, 19 Sep 2014 17:46:28 +1000 Subject: fix victory by combat --- robots/game.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/robots/game.py b/robots/game.py index 893f147..9160245 100644 --- a/robots/game.py +++ b/robots/game.py @@ -82,11 +82,10 @@ class Game: if robots: roboteers.append(name) - if self.victory_by_combat: - won = bool(winners) - if len(roboteers) <= 1: - won = True - winners.extend(roboteers) + won = bool(winners) + if len(roboteers) <= 1 and self.victory_by_combat: + won = True + winners.extend(roboteers) return winners or won -- cgit v1.2.3