Random Cellular Automata


This is a toy script that generates a random 2D celluar automata ruleset and applies it to a randomly generated world with each run of the web page. You can click on the viewport to reset it with a completely different universe, starting population and rules for the universe.

Some universes are more stable than others, which may last for only a few cycles before all the cells die off. Some can converge to an interesting pattern or have some other sort of emergent behavior.

Source code