Skip to main content

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:

  1. Default position actions
  2. No movement (disallows swapping participants & etc.)
  3. Disabled position actions
  4. 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

  • {}
    • {}