Simten

Snake in Hardware

This whole thing runs without a CPU. Every move the snake makes is decided by wires and gates, all at once, on each clock tick. It’s about 100 nodes of logic, registers, and memory, all written in TypeScript and simulated live in your browser. The same code exports to Verilog. Here’s how it works.

Interactive tutorial/~12 min read