diff --git a/game/game.py b/game/game.py index 8805295b..286b8dc3 100644 --- a/game/game.py +++ b/game/game.py @@ -262,10 +262,10 @@ class Game: persistency.autosave(self) def check_win_loss(self): - cps = {i.captured: i for i in self.theater.controlpoints} - if True not in cps.keys(): + captured_states = {i.captured for i in self.theater.controlpoints} + if True not in captured_states: return TurnState.LOSS - if False not in cps.keys(): + if False not in captured_states: return TurnState.WIN return TurnState.CONTINUE