yasuki_core.engine.rules.decisions.DecisionRequest#
- class DecisionRequest(seat, candidates)[source]#
A question the engine pauses to put to one seat.
The engine runs until it needs input, records a concrete request on
GameState.pending, and returns; the seat answers with aDecisionResponseand the engine resumes. Concrete requests form a closed union that grows with the rules vocabulary.- Attributes:
Methods
DecisionRequest.__init__(seat, candidates)DecisionRequest.accepts(response)Return whether
responseis a structurally well-formed answer to this request — the right shape, drawn fromcandidates.Attributes
seatcandidatescancellableWhether the seat may back out of this decision, undoing the action that raised it.