aboutsummaryrefslogtreecommitdiff
path: root/go/game/stack.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-26 11:16:00 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:52 +0100
commitacb23943290d9325f8cc7ec8fd22e4a49a08f9c3 (patch)
treebe03d6e5d75168de4e64fe3f9fa74a55ebbeeadd /go/game/stack.go
parentf13980b77714cfae5541ae1257a8f76156516c64 (diff)
downloadmuhqs-game-acb23943290d9325f8cc7ec8fd22e4a49a08f9c3.tar.gz
muhqs-game-acb23943290d9325f8cc7ec8fd22e4a49a08f9c3.zip
only pop an action if all players have passed priority
Diffstat (limited to 'go/game/stack.go')
-rw-r--r--go/game/stack.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/go/game/stack.go b/go/game/stack.go
index 5d71eae3..8087aef7 100644
--- a/go/game/stack.go
+++ b/go/game/stack.go
@@ -47,7 +47,8 @@ func (s *Stack) pop() {
func (s *Stack) resolve() {
for !s.IsEmpty() {
- s.gameState.allPassing(false)
+ for !s.gameState.allPassing(false) {
+ }
s.pop()
s.gameState.stateBasedActions()
}