Design reversible logic with mirrors, balls, inputs, and outputs. Built with pygame + pygbag so everything runs in your browser.
Python sources ship with the build. Fork, teach, or extend—everything lives in this web package.
Pick a motif to see how geometry becomes logic.
Two balls converge on a mirror set, collide, and only a simultaneous arrival reaches the output.
All Python files ship inside the web build for easy inspection and remixing.
Runs entirely in WebAssembly via pygbag. Serve build/web and you’re live.
Use it in classrooms or demos—fork the code, add presets, and share.
./build_wasm.sh to package with pygbag.(cd build/web && python3 -m http.server 8000).http://localhost:8000; the loader (simulator.html) boots pygame in WASM.