DevTools Logo

Wolfram 1D Cellular Automata

Wolfram 1D Cellular Automata

Explore elementary cellular automata entirely in your browser

Automaton settings

Presets

Produces 1 for neighborhoods: 100, 011, 010, 001.

About

Explore rules 0–255, binary neighborhoods, generation evolution, and periodic or fixed boundaries. Classic presets include Rule 30, Rule 90 Sierpiński patterns, Rule 110, and Rule 184 traffic flow. Everything runs client-side.

Examples

Rule 30 triangle from a seed

Input
evolveAutomata({ rule: 30, width: 7, generations: 3 })
Output
[0,0,0,1,0,0,0] -> [0,0,1,1,1,0,0] -> [0,1,1,0,0,1,0] -> [1,1,0,1,1,1,1]

Rule 30 expands chaotically from the centered seed, producing the classic asymmetric triangle.

Rule 255 fills everything

Input
evolveAutomata({ rule: 255, width: 4, generations: 1, initial: [0, 1, 0, 0] })
Output
row 1 -> [1, 1, 1, 1]

Every rule-255 output bit is 1, so any neighborhood maps to a live cell on the next row.

About this tool

Wolfram 1D Automata evolves elementary cellular automata with evolveAutomata({ rule, width, generations, boundary, initial }) (alias simulateElementaryCA): the returned rows include the initial row, so generations N yields N + 1 rows. Helpers ruleToBits, nextCell, neighborhoodIndex, and describeRule expose the 111-through-000 bit order and per-neighborhood behavior.

Rules are integers 0–255, widths 1–500, generations 0–500; boundaries are periodic (wrap), fixed-0, or fixed-1 (default fixed-0). Bundled PRESETS name rules 30 (chaotic growth), 90 (Sierpiński triangle), 110 (complex universal behavior), and 184 (traffic flow).

Everything is deterministic and client-side: the default initial row is a single centered 1, custom initials must hold exactly width binary cells, and identical options always return identical grids.

How to use this tool

  1. Pick a rule

    Choose 0–255 directly or start from a preset — 30 for chaos, 90 for the Sierpiński triangle, 110 for complex behavior, 184 for traffic flow.

  2. Set size and boundary

    Set width and generations, then pick periodic wrapping or a fixed-0/fixed-1 edge (edges only matter once activity reaches them).

  3. Seed the first row

    Leave the default centered 1 or pass an initial array with exactly width binary cells.

  4. Read the rows

    Row 0 is the seed; each later row is the rule applied to left/center/right neighborhoods of the row above.

Use cases

Teaching emergence

Show how eight neighborhood bits generate chaos, fractals, and traffic waves from a single seed.

Comparing boundary effects

Run periodic versus fixed edges to see wrap-around change only the cells activity has reached.

Prototyping generative art

Export deterministic grids as pixel patterns, knowing identical options always repeat.

Common mistakes

Mistake:Expecting generations N to return N rows.

Fix:The result includes the initial row, so generations 4 returns 5 rows — subtract one when sizing canvases or loops.

Mistake:Passing an initial row whose length differs from width.

Fix:Initial must contain exactly width binary (0/1) cells; pad or trim it to match before calling.

Mistake:Assuming periodic and fixed boundaries always differ.

Fix:They agree until activity touches an edge — seed near the border or run enough generations to observe the difference.

Frequently asked questions

What does this tool do?

It evolves elementary cellular automata with evolveAutomata({ rule, width, generations, boundary, initial }) (alias simulateElementaryCA): rows include the initial row, with ruleToBits, nextCell, neighborhoodIndex, and describeRule helpers plus PRESETS for rules 30, 90, 110, and 184.

When do periodic and fixed boundaries differ?

Only once activity reaches an edge — e.g. rule 90 from [1,0,0,0,0] wraps the seed to the far cell under periodic but leaves it 0 under fixed-0. Interior evolution is identical.

Is my automaton uploaded or stored?

No. Rule stepping and grid assembly run entirely in your browser.

Why did I get fewer rows than expected, or an initial-row error?

generations N returns N + 1 rows including the seed, so size loops accordingly. The initial error means the array was not exactly width binary cells — pad or trim it to width with only 0/1 values.

References & standards