WireWorld is a Turing-complete Cellular Automaton that can be used to simulate circuits and logic gates. You can try out the simulator here.
Here's a guide that walks through the process of building a wireworld computer that calculates primes, complete with logic gates, flip-flops, adders, read only memory and registers.
A wireworld is made up of four types of cell.
After each tick of the simulation, the following rules are applied.
Toggle play/pause | Paint at cursor | Clear grid |
---|---|---|
enter |
space |
x |
Move left | Move down | Move up | Move right |
---|---|---|---|
β or h |
β or j |
β or k |
β or l |
1 |
2 |
3 |
4 |
Selection mode | Copy selection | Paste selection |
---|---|---|
ctrl |
y |
p |
Distributed under the Eclipse Public License version 1.0.