In the source
For developers. The bot interface and the engine are written in the play page's repository, which is not public; this repository holds a copy of the interface's two files for the types package, and the command line's side of running a bot. The toolchain that builds a BWAPI bot is a repository of its own, github.com/scm-js/scmbot.
| File | Does |
|---|---|
bot/src/api.ts |
The interface underneath (BOT_API 1): the module, init, the view, the orders and the questions. A copy |
bot/src/kit.ts |
The short way, written on api.ts. A copy |
bot/package.json, bot/README.md |
The @scm-js/bot package: the declarations of both files, as one index.d.ts |
scripts/build-bot-types.mjs |
Copies the two files in from the engine's repository, and builds the declarations |
tests/bot-package.test.ts |
That the two files import only each other, that the package builds, and that the bots on this page type-check against it |
cli/src/bot.ts |
scmjs bot new, init, build and update: the toolchain's image, run through Docker |
cli/src/botrun.ts, cli/src/ladder.ts |
scmjs bot run and scmjs bot ladder |
cli/src/files.ts |
Telling a JavaScript bot from a built .scmbot file |
cli/src/mod/header.ts |
scmjs mod header --js |