No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Mikael Nordin
4e8343ce85
|
hace 7 años | |
---|---|---|
2dcellaut.pl | hace 8 años | |
README.md | hace 8 años | |
ca.cpp | hace 7 años | |
cellaut.pl | hace 8 años |
README.md
cellular-automaton
This is an implementation of 256 elementary cellular automatons: http://mathworld.wolfram.com/ElementaryCellularAutomaton.html
Usage:
./cellaut.pl <number of generations> <width> <rule number (0-255)> [num rules]
Example usage and output for rule 30:
./cellaut.pl 10 30 30
■
■■■
■■ ■
■■ ■■■■
■■ ■ ■
■■ ■■■■ ■■■
■■ ■ ■ ■
■■ ■■■■ ■■■■■■
■■ ■ ■■■ ■
■■ ■■■■ ■■ ■ ■■■
■■ ■ ■ ■■■■ ■■ ■
Example usage and output for rule 110:
./cellaut.pl 10 30 110
■
■■
■■■
■■ ■
■■■■■
■■ ■
■■■ ■■
■■ ■ ■■■
■■■■■■■ ■
■■ ■■■
■■■ ■■ ■