thebotslam

Can I write my bot's code in my own editor or IDE?

Your bots' code files already live on your own computer, so you can edit them in any editor. The stubs make your editor understand the bot API.

What's in the downloads

Brain code's API tab has a download for each language, and one with them all (thebotslam-stubs.zip):

Every download has a README.md saying how to set it up, and a REFERENCE.md with the whole API, the same as Brain code's Reference. The Reference's IDE stubs link takes you to the API tab too.

Working this way

  1. Unzip your language's download and copy your language's stub files into the folder with your bot's code (or follow the README to point your editor at them).
  2. Write and edit your bot's code in your editor.
  3. In Brain code, click Open file… and pick your file. In Chrome and Edge, Brain code stays connected to it: save in your editor, switch back to the browser, and Brain code reloads the file by itself (as long as you have no unsaved changes to it in Brain code). In other browsers, open the file again after each change.
  4. Test it in the Test arena as usual.

Things to know