Function AI

  • Encapsulates the decision-making logic for the AI to play a card. Example usage: const selectedIndex = AI(Strategy.filter)(G, ctx);

    Returns

    The index of the card to play from the AI's hand.

    Parameters

    Returns ((G: WizardDuelState, ctx: Ctx) => number)

Generated using TypeDoc