Chooses the action to take for an active pokemon in battle
The context
The active slot
The available move decisions
The available switch decisions
The available shift decisions
Extra context data if the algorithm need to keep track of stuff for active and force-switch decisions
The chosen decision
Chooses a switch in a force-switch situation Example: U-turn-like moves, red card, or a pokemon fainted
The context
The active slot
The available switch decisions
Extra context data if the algorithm need to keep track of stuff for active and force-switch decisions
The chosen decision
Chooses a pokemon to revive Example: Use of Revival Blessing
The context
Tha available revival decisions
The chosen decision
Chooses the team in the team preview
The context
The available team choices
The chosen decision
Makes a decision given the context
The context
The battle decision
Generated using TypeDoc
Generic NPC decision algorithm