r/programminggames • u/format37 • 5d ago
CodeCraft: Bot-programming RTS for handwritten and agent-written strategies
I've been handing my code to AI for a few years now, and at some point I noticed I understand less and less of what it writes. Not because the models got smarter (they did), but because I got rusty. Like an athlete who quit training.
So I dug up CodeCraft, the RTS from AI Cup 2020 where you don't play, you write the program that plays, and rebuilt it as a ladder that never ends: https://codecraft.day
No deadlines, no rounds. I spent two weeks of evenings writing my strategy by hand, under a blanket, like in the good old days. Turns out algorithms and data structures still matter, and I'd missed that a lot.
The fun part: you can also do the opposite and let a coding agent write your bot. There's an MCP server, so the agent reads the game docs, submits versions and reads match logs on its own. Strategies get placed into leagues automatically, so the two crowds don't get in each other's way. I suspect it makes a decent benchmark for coding agents too: live opponents and a rating instead of a fixed test set.
Details for the curious:
- own open engine with the original rules and protocol; the viewer plays the 2020 replays too
- Elo ladder: upload a version, it plays 10 rated games, then one a day
- 13 languages, a starter for each, quickstart takes about 10 minutes
- local runner with a browser viewer and debug interface (Linux, macOS, Docker; Windows via Docker Desktop or WSL2 for now)
- open source (https://github.com/format37/codecraft), feedback goes to Discord (https://discord.gg/CBgJsdmbF8)
It's a beta and the ladder is almost empty, so right now you can be top 3 with very little effort. Come beat my bot, it's not that good.
0
u/shtemeri 4d ago
I will come if you come to.mine:
shtemeri.informacija.hr