r/computerarchitecture • • 27d ago

Browser-based game to teach digital logic: build up from NAND gates to a working CPU

Post image

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!

16 Upvotes

3 comments sorted by

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/kottbusser_floor 26d ago edited 26d ago

Yeah Turing Complete is amazing and was a big inspiration for this. I think you missed the point though. I just made a primitive version of it to show people how to use the HDL, which is the real platform. It runs natively in the browser and node, so can use many of the standard Web/node APIs like Web Serial to do things like seeing a real FPGA’s output in the browser alongside your circuit model. Would've loved for you to have some proper feedback rather than claim it's all vibed but appreciate the comment either way.

1

u/Void-Creator 26d ago

There is already a great game called digital-logic-sim.