A script for simulating 1-dimensional cellular automata. Supports variable number of states and neighborhood size.
python cellular-automata.py <rule-number> <img-width> <num_generations> <outfile>
Example rule numbers can be found in rules.txt
.
Rule numbers are specified in "Wolfram Code".