Position Actions
See Actions for context.
positionActions
returns an array of valid actions for a specified drawPosition. Valid actions can be determined, in part, by
policyDefinitions
. In the Competition Factory source there are four examples of position action policies:
- Default position actions
- No movement (disallows swapping participants & etc.)
- Disabled position actions
- Unrestricted position actions (all available actions)
const { positionActions } = askEngine.positionActions({
policyDefinitions, // optional - can be attached to tournamentRecord, event, or draw
drawPosition,
eventId,
drawId,
});
policyDefinitions Example
- {}▶
- {}▶