Trainer battle AI

ConquestTrainers gives gyms, the Battle Subway and roaming trainers a tactical AI with levels from Novice to Champion, instead of trainers that just pick the move that looks strongest.

Novice to Champion

Role
Design and development
Status
Live
Built with
  • Java
  • Cobblemon
  • Pokémon Showdown

How it decides

  • A battle-maths engine scores every option: damage ranges, speed and priority, KO checks, setup moves and pivots like U-turn.
  • Lower levels have to estimate what they can't see. They assume 31 IVs and 84 EVs and an 80 power same-type attack. Champion trainers see the real moves, stats, items and bench.
  • Each trainer has its own level, set in config, with a command or through the API.

Worth knowing

Switching used to get a fixed bonus, so even a weak swap outscored a decent attack and hard trainers spent whole battles switching. Switches are now scored only by how much the matchup improves, minus what the switch costs.