From d4e6d843dc71b68a34f1aa2eed84e5fe20af3589 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 3 Jul 2025 21:48:58 -0400 Subject: support king games --- go/game/state.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'go/game/state.go') 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 -- cgit v1.2.3