Skip to content
Philipp Stuber

Projects

Two games I build in my own time with coding agents. I write the plans and decide what to build; the agents write much of the code.

Wargridearly development, playable in the browser

Wargrid: a strategy game that has to agree with itself

A real-time strategy game in Godot with typed GDScript, public under GPL-3.0 or later. Online matches are one against one, with a Go relay in the middle. Both players run the same deterministic simulation and exchange only commands. Wargrid does not try to repair a desync: it detects one within about a second, stops the match and writes a report.

Wargrid on the sand map Dry Wells: a blue base of flat-roofed blocks and two power drums, blue infantry and tanks meeting red infantry and tanks in the open. Credits and power along the top, the selection panel and order buttons along the bottom.
Dry Wells, bot against bot. Captured in the engine from the current build.
Lockstep: each player's game sends only commands through the relay; both simulations exchange a state digest every 30 ticks. Player ARelayPlayer Bsimulationforwards bytessimulationdigest compared every 30 tickscommands only · 30 ticks/s · input delay 4same commands ⇒ same state, on Linux, Windows and macOS
  • ~1.5 KB/suplink per player in online matches
  • 1 sto detect a desync; the match stops and writes a report
  • F = 5.5assumed slowdown, Steam Deck browser vs. dev Mac, last measured 5.0–5.2 on simulation rows (Nov 2026); performance budgets derive from it
Determinism
The simulation advances on ticks and never reads a wall clock. It has its own xorshift random number generator and avoids trigonometry, exp and log, because the math libraries differ between platforms. Commands are applied in sorted order. A lint test scans the simulation for banned calls, and replay traces come out identical on Linux and Windows in CI and on macOS locally.
Desync detection
Matches run in lockstep at 30 ticks per second with an input delay of 4 ticks. Each player sends one packet per tick, about 52 bytes per frame. The relay forwards bytes and checks that seats and ticks arrive in order; it does not run the game. Every 30 ticks the players compare a digest of the simulation state. A mismatch stops the match and writes a desync report, and two tools, desync_diff and bisect, help narrow a report down. A test that deliberately perturbs the state proves the detection fires.
Performance budgets
The game is tuned for a machine it is not written on. Budgets come from measurements on a Steam Deck browser, expressed as a slowdown factor against my Mac. A p95 and p99 ledger tracks each area, and a regression gate compares every change with the merge base. A budget or the factor is never loosened to make a row pass; some areas are still over budget.
Agent workflow
Wargrid is developed with AI coding agents (Claude Code) working from written plans, review gates and recorded evidence. Runs happen overnight, work is routed to different models by task, and a task is parked after two red fix rounds. The repository has about 1,800 test cases (Nov 2026), and the GDScript test code is about twice the production code. A test run that executes zero cases counts as a failure.
Vectorlashprototype, playable in the browser

Vectorlash: bots to find out what the rules are worth

An arcade prototype in Go and raylib. The goal is to find out whether the core mechanic deserves to become a finished game.

Vectorlash arena on a dark grid: a mint ball at the lower right, a white dashed line up to the top wall and a gold dashed line bouncing back down past orange diamond targets, one of them outlined in white. Score, combo, clock, five redirect charges and best score across the top.
Aiming in slow motion. White is the shot, gold is the bank leg off the top wall, and the lit band marks where a bank pays most. Captured from the prototype.
Rules apart from rendering
The game package imports neither raylib nor the file system. Input goes in, a list of events comes out, so bots can play it headless. The canvas is a fixed 1280 by 720 and physics steps at 240 Hz. Sound effects are synthesised in code.
Bots found a rule that was broken
Idle, random, human and aimer bots play 2000 seeded runs in CI. They showed that never clicking scored almost as well as aiming, which led to a combo timeout. 125 tests, JSONL run traces, an F1 overlay and a scripted screenshot generator support the tuning.
Black Cinder Gamesthe studio

One-person studio, two games

Both games are released as Black Cinder Games. Status, screenshots and play links live on the studio site.