Fix hand-end timeouts after partial acknowledgements
This commit is contained in:
1 parent
71493f720b
commit
565e927a9b
4 files changed
+93
-4
No files matched your search
@@ -220,6 +220,8 @@ class _BriscolaBase(GameEngine):
|
||||
)
|
||||
elif kind == "hand_end":
|
||||
for player in state.players:
|
||||
if state.phase != PHASE_HAND_END:
|
||||
break
|
||||
engine.acknowledge_hand(state, player.sub)
|
||||
log.info(
|
||||
"deal %d auto-advanced after the acknowledgement timeout",
|
||||
|
||||
@@ -224,6 +224,8 @@ class _ScopaBase(GameEngine):
|
||||
)
|
||||
elif kind == "hand_end":
|
||||
for player in state.players:
|
||||
if state.phase != PHASE_HAND_END:
|
||||
break
|
||||
engine.acknowledge_hand(state, player.sub)
|
||||
log.info(
|
||||
"hand %d auto-advanced after the acknowledgement timeout",
|
||||
|
||||
@@ -234,6 +234,8 @@ class ScoponeEngine(GameEngine):
|
||||
)
|
||||
elif kind == "hand_end":
|
||||
for player in state.players:
|
||||
if state.phase != PHASE_HAND_END:
|
||||
break
|
||||
engine.acknowledge_hand(state, player.sub)
|
||||
log.info(
|
||||
"hand %d auto-advanced after the acknowledgement timeout",
|
||||
|
||||
Reference in new issue
Block a user