summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--robots/game.py9
1 files 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