• Check out the relaunch of our general collection, with classic designs and new ones by our very own Pissog!

Creating a showdown AI

I am interested in creating as good of a Pokemon AI as I can with machine learning. However, I am not interested in looking through the large amount of code of Pokemon showdown to find what parts I need to edit. I have set up a Pokemon showdown server and I am currently looking through the client and server code to find where the user's move input and teams are found. Can anyone tell me where to find the teams of both players (similar to team preview when a battle is going on), where to find the place where moves are queried, and any other places you might think are relevant for an AI in the showdown code?
 
david stone has been working on a Pokemon AI called Technical Machine for some time now (or at least was). I remember him running into a lot of issues with it, particularly the time it took the AI to actually select an action. Creating an AI is a big task, and you need to be absolutely sure you're up to it if you want to actually create one.
 
User MJB made a bot called MJBot on PS so he might be able to help you. He might be busy though. It currently does limited actions (basically each mon is choiced and rarely switches, but it knows not to use a nve move against mons and stuff).
 
As I understand it, TM involves the use of a static evaluation function alongside Expectiminimax to determine actions, which isn't "machine learning".

I haven't delved into Technical Machine very much, but I've worked a little on MJB's bot and it's very simplified compared to the former.

To try and answer your question, (most) battle messages are documented here.
 
Back
Top