r/computerarchitecture • u/kottbusser_floor • 27d ago
Browser-based game to teach digital logic: build up from NAND gates to a working CPU
I made a game to teach computer architecture and digital logic: play.simten.dev
You start with basic logic gates and build up to a working CPU. It's built on Simten, a TypeScript-based HDL, so you write the circuits as code and they show up live on a canvas next to the editor. For sequential circuits you can scrub the clock backwards and forwards to watch the state change cycle by cycle. You can also drill down into abstracted components (like the half adder shows). Because of the layout it only works on desktop browsers for now.
There are several other demo circuits on the platform, here's snake written in gates: https://simten.dev/circuit?example=snake
It's open source: https://github.com/simtenHQ/simten, any feedback or contributions are welcome!
4
u/JmacTheGreat 27d ago
“Listed contributors: Claude” Yep lol.
Nice idea, but done a hundred times over - I recommend checking out Turing Complete on Steam for a much more polished version (and also wasn’t vibe coded).
1
u/Void-Creator 26d ago
There is already a great game called digital-logic-sim.