From c54f6ba4d25ccb99d11623e684814bb7ad18e151 Mon Sep 17 00:00:00 2001 From: walterroach Date: Wed, 9 Dec 2020 18:25:24 -0600 Subject: [PATCH] Use set instead of dict --- game/game.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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