yasuki_core.engine.rules.flow.submit#

submit(game, response)[source]#

Answer the pending decision and resume the engine.

Dispatch on the request type to its apply-handler, then continue: an end-of-turn discard begins the next turn, while a cost payment drains the stack to finish the action that paused for it.

Raise RuntimeError if no decision is pending, or ValueError if the answer is malformed or illegal against the game state.