Let's Build a Cellular Automaton!


[Home][Prev][Next][Help]


Let's Try One:

There's just no way to get the feel for what is going on other than to actually try it. Here's a rule (What's its Wolfram code, by the way?):

rule 124

To construct a CA using this rule, follow along with the step-by-step procedure shown below.

The First & Second Generation
Action Result
Start at the top of a sheet of graph paper with one on/black cell. The top row represents the initial generation.
[rule 126, gen 1

In the diagram at right, the current neighborhood is outlined in red, and the red arrow points to the current cell.

All of the neighborhoods to the left of this one have the same neighborhood (neighborhood 0 = 3 empty cells) and follow neighborhood 0which says that the current cell stays empty in the next generation. Therefore, all cells in the next generation from the current neighborhood to the left edge of the grid stay white/empty/dead/off.

rule 126
Moving the current cell one cell to the right, the new neighborhood (neighborhood 1) follows neighborhood 1so the current cell stays empty in the next generation. next neighborhood
Now, the current cell is the black cell, and the neighborhood is neighborhood 2(neighborhood 2) so the current cell stays black in the next generation. next neighborhood
This neighborhood is neighborhood 4so the current cell turns on for the next generation. next neighborhood
All the rest of the neighborhoods in this generation look like neighborhood 0so no other cells change in this generation. This completes the second generation. It consists of the two black cells shown. next neighborhood

The Third Generation:

Building the Third Generation
Action
Result
All of the cells to the left of the current neighborhood areneighborhood 0and so the next generation stays empty for those cells. left-hand cells
Moving one cell to the right, the new neighborhood (neighborhood 1) follows neighborhood 1so the current cell stays empty in the next generation. next neighborhood
The neighborhood is neighborhood 3. The current cell stays on. next neighborhood
neighborhood 6
next neighborhood
neighborhood 4
next neighborhood
All the rest of the neighborhoods look like neighborhood 0so no other cells change in this generation. This completes the second generation, which consists of a row of three black cells. next neighborhood

[Home][Prev][Next][Help]


last update November 24, 2009 by JL Stanbrough