Skip to content

Commit

Permalink
Game state arrays created correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbons committed May 25, 2020
1 parent 6768c70 commit a1d9987
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_namespace_packages

setup(name='wingedsheep-carcassonne',
version='1.0.0',
version='1.0.1',
description='Carcassonne implementation',
author='Vincent Bons',
url='https://github.com/wingedsheep/carcassonne',
Expand Down
10 changes: 5 additions & 5 deletions wingedsheep/carcassonne/carcassonne_game_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def __init__(
self.starting_position: Coordinate = starting_position
self.next_tile = self.deck.pop(0)
self.players = players
self.meeples = [7 for _ in range(players + 1)]
self.abbots = [1 if SupplementaryRule.ABBOTS in supplementary_rules else 0 for _ in range(players + 1)]
self.big_meeples = [1 if TileSet.INNS_AND_CATHEDRALS in tile_sets else 0 for _ in range(players + 1)]
self.placed_meeples = [[] for _ in range(players + 1)]
self.scores: [int] = [0 for _ in range(players + 1)]
self.meeples = [7 for _ in range(players)]
self.abbots = [1 if SupplementaryRule.ABBOTS in supplementary_rules else 0 for _ in range(players)]
self.big_meeples = [1 if TileSet.INNS_AND_CATHEDRALS in tile_sets else 0 for _ in range(players)]
self.placed_meeples = [[] for _ in range(players)]
self.scores: [int] = [0 for _ in range(players)]
self.current_player = 0
self.phase = GamePhase.TILES
self.last_tile_action: Optional[TileAction] = None
Expand Down

0 comments on commit a1d9987

Please sign in to comment.