Function makeDecisionsSimple

  • Makes a decision for any context Takes a pseudo random approach choosing the active slots, so it may not be ideal for doubles or triples.

    Type Parameters

    • T = never

    Parameters

    • context: DecisionMakeContext

      The context

    • decisionMaker: DecisionMaker<T>

      A system to make each individual choice

    • Optional contextExtraData: T

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

    • Optional forceMegaEvolution: boolean

      Force mega evolution if available

    Returns Promise<BattleDecision>

    The chosen decision

Generated using TypeDoc