diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-03-25 18:26:20 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:55 +0100 |
| commit | e897f12584200f55fd1af43c9101adfcc4937954 (patch) | |
| tree | 3866bd3db89c66e3df7441b7b64445b57420aa0e | |
| parent | 75a5a69597c88be6b670f45fd7e793643cff988e (diff) | |
| download | muhqs-game-e897f12584200f55fd1af43c9101adfcc4937954.tar.gz muhqs-game-e897f12584200f55fd1af43c9101adfcc4937954.zip | |
run state based actions before players receive priority
| -rw-r--r-- | go/game/state.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/go/game/state.go b/go/game/state.go index 36dc3e77..0631e5eb 100644 --- a/go/game/state.go +++ b/go/game/state.go @@ -404,6 +404,7 @@ func (s *State) allPassing(skipFirst bool) bool { } for ; i < nPlayers; i++ { p := s.Players[(i+s.ActivePlayer.Id-1)%nPlayers] + s.stateBasedActions() p.Ctrl.SendNotification(newPriorityNotification()) a := p.Ctrl.RecvAction() switch a.(type) { |
