yasuki_core.engine.rules.decisions.ChooseCards#
- class ChooseCards(seat, candidates, minimum, maximum, resolver, source_id)[source]#
The seat must choose between
minimumandmaximumof the candidate cards — a variable-count target, as when a triggered effect targets “zero to two” cards. The chosen ids feed the named resolver, whose effects apply once the choice is made. The candidates are the cards the effect may legally target, all in play, so a client renders them as board selections.- Attributes:
Methods
ChooseCards.__init__(seat, candidates, ...)ChooseCards.accepts(response)Return whether
responseis a structurally well-formed answer to this request — the right shape, drawn fromcandidates.Attributes
minimummaximumresolversource_id