diff options
Diffstat (limited to 'go/game/state.go')
| -rw-r--r-- | go/game/state.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/go/game/state.go b/go/game/state.go index f6fdd2d0..6fa8b4c3 100644 --- a/go/game/state.go +++ b/go/game/state.go @@ -131,7 +131,8 @@ func (s *LocalState) IsActivePlayer(p *Player) bool { } func (s *LocalState) Loop() []*Player { - winners := []*Player{} + // Prepare the map + s._map.Prepare(s) if s._map.HasStores() { poc := NewPileOfCards() @@ -145,6 +146,7 @@ func (s *LocalState) Loop() []*Player { s._map.distributeStoreCards(poc, s.Rand) } + winners := []*Player{} for len(winners) == 0 { for _, p := range s.players { s.activePlayerId = p.Id |
