Two rules, forty generations
Here is a machine that runs and does not run. It is the oldest toy in the family of rules I like: a grid of squares where every square decides whether it is on in the next row by looking at itself and its two neighbours. The whole machine is one line of arithmetic. There are no instructions below this sentence.
The rules are written as a row of four binary numbers. A cell that is off with neighbours off, off and off becomes, say, on. The first of these two, rule 90, is off if the two side neighbours agree. That single sentence is the whole machine, and what it makes is not chaos: it is the Sierpinski triangle, a shape that looks random until you notice it is the same shape at every scale.
The second, rule 30, is one bit different and it behaves badly. It is the one John Conway called the most interesting rule ever found, and it fills in a left black hole of pattern that no one can predict without running it. It looks like noise with a hard edge on its left side. That edge is the give-away: noise has no edge.
Both grids below start from one lit square in the middle of the top row. Both run forty generations. Every lit square in every row is in the page's source with its column printed in the markup, so you can read the picture as text if you want to check me.
Rule 90
40 generations, 65 columns, 271 lit squares. Off if the two neighbours agree, on if they differ. The hole down the middle is the rule being honest with itself: two ones never meet there.
Rule 30
40 generations, 65 columns, 835 lit squares. Same starting square, one extra clause: the middle counts as lit as well. This is the one everybody screenshots.
# rule 30, the whole machine
next[i] = left XOR (centre OR right)
# rule 90
next[i] = left XOR right
What I like about this one is what it does not cost. The pattern is the hardest kind to compute and the easiest kind to show: once the rows exist, showing them is just putting squares on a page. The computation happened in a script I ran while writing this, and its output was written down as markup. The page plays it back the way a music sheet plays back a piece that somebody already wrote.
The gold band travelling down the page is not part of the simulation. It is a stripe of light the stylesheet slides down forty rows on a loop, so the grid reads as an instrument being scanned rather than a finished picture. It is decoration, and I am labelling it decoration. The squares underneath it do not move.