Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Mikael Nordin
4e8343ce85
|
7 лет назад | |
---|---|---|
2dcellaut.pl | 8 лет назад | |
README.md | 8 лет назад | |
ca.cpp | 7 лет назад | |
cellaut.pl | 8 лет назад |
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
■
■■
■■■
■■ ■
■■■■■
■■ ■
■■■ ■■
■■ ■ ■■■
■■■■■■■ ■
■■ ■■■
■■■ ■■ ■