smogon / pokemon-showdown

Pokémon battle simulator.
https://pokemonshowdown.com
MIT License
4.77k stars 2.79k forks source link

Is there a programmatic API to simulate a battle (without GUI)? #4841

Closed jamesqo closed 6 years ago

jamesqo commented 6 years ago

Hey, I'm writing a machine learning program that predicts the best next move given the current state of the game, so that it can be used as a competitive battling AI. Does Pokemon Showdown offer a programmatic API to simulate a battle / do damage calculations without the GUI? Thanks.

Zarel commented 6 years ago

Yes, see:

https://github.com/Zarel/Pokemon-Showdown/tree/master/sim

kirliavc commented 6 years ago

https://github.com/dramamine/leftovers-again see this project, although it seems didn't update USUM metagame.