Instantiates the algorithm
Optional
config: RandomDecisionAlgorithmConfigConfiguration
Switch chance (0 - 1)
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
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
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
Random decision algorithm