โšก Wireworld โ€” CA Computing Lab

A four-state cellular automaton that does real digital logic, now on a big 160ร—96 canvas with room for larger structures. Electrons race down copper wires; wire them into diodes, clocks, fan-outs, gates, and storage loops and watch simple local rules add up to computation. Load a circuit, hit play, or paint your own.

Gen 0 ยท Electrons 0
Circuit: Paint:

Welcome

The four states

Empty โ€” nothing happens.
Conductor (wire) โ€” stays wire unless 1โ€“2 neighbours are electron heads, then it becomes a head.
Electron head โ†’ always becomes a tail next step.
Electron tail โ†’ always becomes conductor next step.

An electron is a head followed by a tail; it races along wire, one cell per step. The "1 or 2 heads" rule is the whole computer โ€” it lets wires fan out, electrons collide and annihilate, and gates compute.

Gate roadmap

Working & verified: signal, clock, 1-bit memory, diode, fan-out, collision, OR, XOR. A clean combinational AND / NAND can't be a tiny stamp in 4-state Wireworld โ€” any wire next to a single electron head fires, so AND fundamentally needs a clocked, multi-cell gadget (build it from the clock + XOR + OR via De Morgan). The new clock and memory loops are the active building blocks for exactly that โ€” a full adder and flip-flop are the next milestone.

Controls

Space play/pause ยท S step ยท C clear
Click or drag to paint the selected state. Right-click erases. Pick a circuit to load a verified, simulation-checked example.