diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-03 21:48:58 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-07-06 11:49:19 -0400 |
| commit | d4e6d843dc71b68a34f1aa2eed84e5fe20af3589 (patch) | |
| tree | ee25b7ef22ee4408325642c65d26784646f5ff37 /go/game/state.go | |
| parent | fa5c66a13d7c182f44c9fa52c216e4d0f455ea29 (diff) | |
| download | muhqs-game-d4e6d843dc71b68a34f1aa2eed84e5fe20af3589.tar.gz muhqs-game-d4e6d843dc71b68a34f1aa2eed84e5fe20af3589.zip | |
support king games
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 |
