summaryrefslogtreecommitdiff
path: root/swiftstory
diff options
context:
space:
mode:
Diffstat (limited to 'swiftstory')
-rw-r--r--swiftstory/game.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/swiftstory/game.py b/swiftstory/game.py
index 4a7f009..f6dca14 100644
--- a/swiftstory/game.py
+++ b/swiftstory/game.py
@@ -16,8 +16,6 @@ class GameState(Enum):
class Game:
def __init__(self, white_desc, black_desc):
- white_pick = list(enumerate(white_desc))
- black_pick = list(enumerate(black_desc))
self.state = GameState.WAITING_NEW_JUDGE
@@ -26,8 +24,8 @@ class Game:
self.judge: Optional[Player] = None
self.board = Board()
- self.board.white_pick = white_pick
- self.board.black_pick = black_pick
+ self.board.white_pick = list(enumerate(white_desc))
+ self.board.black_pick = list(enumerate(black_desc))
random.shuffle(self.board.white_pick)
random.shuffle(self.board.black_pick)