Module legal

Module legal 

Source
Expand description

Legal action generation and decision modeling.

Structs§

Decision
A pending decision describing which player must act next.

Enums§

ActionDesc
Canonical action descriptor used as the truth representation of legal actions.
DecisionKind
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§

LegalActionIds
Compact list of legal action ids.
LegalActions
Compact list of canonical legal actions.