yasuki_core.engine.rules.flow.advance#

advance(game)[source]#

Advance the active player’s turn to the next phase; past the Dynasty phase, run the end of the turn and begin the next. The gold pool empties on every phase change.

Pause instead of finishing the turn if the end-of-turn discard needs an answer: record the request on game.pending and return, leaving the caller to submit() a response before advancing again. Raise RuntimeError if called while a decision is already pending.