thebotslam

Where are my designs, bots and code saved?

Designs, bots and teams

When you click Save design in the Factory, the design is kept under your account. So are the bots you build from it and the teams you put them in. Log in on another computer and they're all there.

Code files

Your programs are your own files. To save one, type a name in the Name this code file box above the editor and click Save.

To work on a file you saved earlier, or one someone sent you, click Open file… above the editor. In Chrome and Edge, a file you've opened that changes on disk (say, you edited it in another editor) reloads in Brain code by itself, as long as you have no unsaved changes to it there.

A dot on a file's tab means it has unsaved changes.

What the browser keeps

While you're logged in, Brain code also keeps your files, and which program each bot has loaded, in the browser you're using, under your account. That's handy, but it's only in that browser. On another computer, open your files with Open file…. Keep your own copies, and back up the folder you save them in.

If you're not logged in, anything you write is kept only for that browser tab's session: close the tab and it's gone, and it's never moved into an account you log in to later. Log in before you start, and save your files.

Who sees your code

Nobody sees anyone else's code. When you submit a bot to the ladder, the server compiles it and keeps only the compiled bot. When you enter a team in a tournament, its programs go with the entry and are kept private.

Sharing code with friends

Because your code lives in ordinary files, you can share it any way you share files. Many groups keep their bots' files in a GitHub repository so everyone has the latest version.