What is not there yet
These are the things a bot cannot do here yet, listed so that nobody plans around one.
- Teams. Every other player is an enemy. There are no allies and no shared vision.
- Two bots in a game on the page. The page plays one bot a game. Bots play each other
in
scmjs bot ladder, and the replays it keeps are how you watch those games. - Memory between games for a JavaScript bot. A BWAPI bot has its
bwapi-datafolders; the JavaScript interface has nothing of the kind, so a JavaScript bot starts every game knowing only what is in its file. - More than one file on the page. The page keeps a JavaScript bot as the one file you added, so it cannot import others there. The command line runs a bot from your disk, where imports work.
- Drawing on the screen. A JavaScript bot can say things with
game.log. It cannot draw on the map. - A starter folder for a JavaScript bot.
scmjs bot newwrites a C++ bot. For JavaScript, download Starter (a first bot). - Help beyond the economy. The short way looks after money, supply, builders and sending groups out. Scouting, defending a base, casting spells well and anything about the map's shape, such as chokes or the distance on foot between two points, is code you write yourself from what the bot is shown.
- A strong zerg. Both sample bots win about a third of their zerg games against the game's computer (how good the sample bots are).
The sample bots have been measured against the game's own computer only, not against the BWAPI bots.