Factory DS, A Factorio-Like Game for the Nintendo DS
- Source
- ronangaillard.github.io
- Publisher
- Ronan Gaillard
- Author
- j_leboulanger
- Date
Context
Factory DS is a Factorio-style factory-building game for the Nintendo DS, and its creator built a test interface that let AI agents play the game they were helping develop. A headless Mac build runs the game code through a text interface and writes screenshots of its screens. In the full development account, the creator reports roughly 470 scripted sessions that can be replayed after changes, with compiler sanitizers checking for memory errors. Agents also produced gameplay reports to inform balancing decisions. The creator supplied specifications and chose the changes, while Anthropic's Claude Code wrote most of the C. The test interface made gameplay observable to the agents; the author still checked performance separately on the real console.
- The 2048x2048 world is never stored: terrain is computed from (x, y) coordinates and only the player's changes are kept in a hash table, fitting a 67 MHz ARM9 with 4 MB of RAM.
- Night is rendered by changing the 256-color palette instead of redrawing the screen, and power grids and pipes are computed per network with union-find.
- A headless Mac build with a text interface let AI agents play about 470 test sessions and help balance the game.
- Ronan, new to DS development, wrote the specs, design and balancing, while Claude Code wrote most of the C.


