Expand description
Legal action generation and decision modeling.
Structs§
- Decision
- A pending decision describing which player must act next.
Enums§
- Action
Desc - Canonical action descriptor used as the truth representation of legal actions.
- Decision
Kind - Player decision kinds exposed to callers.
Functions§
- can_
declare_ attack - Validate whether an attack can be declared from a slot.
- legal_
action_ ids_ cached_ into - Compute legal action ids for a decision into a reusable buffer.
- legal_
actions - Compute legal actions for a decision.
- legal_
actions_ cached - Compute legal actions using cached data structures where possible.
- legal_
actions_ cached_ into - Compute legal actions into a reusable buffer using cached data.
- legal_
attack_ actions - Compute legal attack actions for a player.
- legal_
attack_ actions_ into - Compute legal attack actions into a reusable buffer.
Type Aliases§
- Legal
Action Ids - Compact list of legal action ids.
- Legal
Actions - Compact list of canonical legal actions.