Cellular Automata on the terminal.
Simulation and visualization of:
- Von Neumann cellular automaton
- John Conway's Game of Life
- Brian Silverman's Wireworld
- Brian Silverman's Seeds
Grid editor for easier input creation.
$ make
$ ./termca examples/gol-glider.txt
$ ./termca
To select which automaton to simulate and visualize, edit states.h
and transition.inc
to #include
the appropriate files from the automata
folder.
Then (re)compile the executable with make
and run it, giving it the input file(s) as command line argument(s). Example input can be found in examples
.
When you've opened the program, press Enter
to continue to the next frame of the simulation. Ctrl+C
will exit the program, and q
will continue to the next file provided as argument.
To contribute, you can write example inputs, or add support for more cellular automata. I'll ask you to use tabs for indentation and spaces for alignment, as well as not to make obnoxiously long lines.