A from-scratch traffic-signal simulator and a multi-agent reinforcement-learning stack built on top of it. One small shared policy learns to run every intersection, and beats a hand-tuned fixed-time plan on road networks from one signal to twenty-five, the same 62-thousand-parameter model unchanged.
Writeup, with live figures: https://orbitope.com/signal/
Signal.Core/— the microsimulator (netstandard2.1, zero-dependency): IDM car-following, signalized intersections, turn restrictions, demand, and the network builders (grids, corridors, one-way couplets).Signal.EnvServer/— the RL environment over stdio (4-byte length-prefixed frames, JSON control plus raw float32 tensors).training/— from-scratch multi-agent PPO (not SB3): the three rungs (independent, shared, centralized critic), evaluation against fixed-time and random baselines, and the recorder behind the article's live figures.RESULTS.mdhas the measured numbers.docs/— the article atorbitope.com/signal/, a single self-contained HTML file with the figures inlined.godot/— the game (Godot 4.7.1 .NET): World 1 and World 2 puzzles, a sandbox where you drive the lights against the AI, and a level editor that exports puzzles. Seegodot/README.md; the roadmap isGAME_PLAN.md.tools/— network and figure renderers.
bash training/run_all.shBuilt by Matthew Burke.