Interface DecisionMaker<T>

Decision maker system

Type Parameters

  • T = never

Hierarchy

  • DecisionMaker

Implemented by

Methods

  • Chooses a switch in a force-switch situation Example: U-turn-like moves, red card, or a pokemon fainted

    Parameters

    • context: DecisionMakeContext

      The context

    • activeSlot: DecisionSlot

      The active slot

    • availableSwitchDecisions: SwitchSubDecision[]

      The available switch decisions

    • contextExtraData: T

      Extra context data if the algorithm need to keep track of stuff for active and force-switch decisions

    Returns Promise<SwitchSubDecision>

    The chosen decision

Generated using TypeDoc