Skip to content

About

An elementary cellular automaton simulator

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

49 Commits

Folders and files

Repository files navigation

Elementary Cellular Automata

A basic elementary cellular automaton simulator. Choose any rule you like, choose an initial state you like (or let one rule spill into the next by changing it mid-simulation) and watch the beautiful patterns.

Starting

You can set the resolution and pixel size with command line arguments, 500x250x3 is default when no arguments are provided, following examples are rule 110.

drawing

>ElementaryCellularAutomata.exe 80 80 10

drawing

>ElementaryCellularAutomata.exe 250 250 3

drawing

>ElementaryCellularAutomata.exe 900 900 1

Shortcuts:

  • TAB - Open / close console
  • CTRL - Run / pause the automaton
  • R - Shortcut to reset

Console commands:

  • help - Show list of commands, shortcuts and interesting rules
  • setrule - Set the automaton rule, range 0-255
  • getrule - Show current rule
  • setstate - Set the initial state, can be left, right, center or random, remember to reset afterwards
  • reset - Clear the simulation and revert to initial state
  • clear - Clear the console
  • wrap - Enable / disable wrapping around the edges of the simulation

Examples

Rule 73 from initial state center:

2023-08-02.11-43-34.mp4

Rule 73 spill into rule 90:

2023-08-02.11-47-46.mp4

Rule 90 from initial state center:

2023-08-02.11-51-11.mp4

The following examples (in 900x500x2) are a very nice demonstration of how different automata interact. This is rule 184 from a random initial state spilling into rule 90. Notice how the proximity of lines seeding rule 90 affect its pattern and the perpetual cycle of an increasing state of chaos before "resetting" back to a more stable state.

2023-08-02.12-08-46.mp4
2023-08-02.12-01-20.mp4
2023-08-02.12-12-18.mp4

About

An elementary cellular automaton simulator

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages