You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

8 years ago
# cellular-automaton
8 years ago
This is an implementation of 256 elementary cellular automatons: http://mathworld.wolfram.com/ElementaryCellularAutomaton.html
8 years ago
Usage:
```
./cellaut.pl <number of generations> <width> <rule number (0-255)> [num rules]
```
8 years ago
Example usage and output for rule 30:
8 years ago
```
8 years ago
./cellaut.pl 10 30 30
8 years ago
■■■
■■ ■
■■ ■■■■
■■ ■ ■
■■ ■■■■ ■■■
■■ ■ ■ ■
■■ ■■■■ ■■■■■■
■■ ■ ■■■ ■
■■ ■■■■ ■■ ■ ■■■
■■ ■ ■ ■■■■ ■■ ■
8 years ago
```
8 years ago
Example usage and output for rule 110:
8 years ago
```
8 years ago
./cellaut.pl 10 30 110
8 years ago
■■
■■■
■■ ■
■■■■■
■■ ■
■■■ ■■
■■ ■ ■■■
■■■■■■■ ■
■■ ■■■
■■■ ■■ ■
8 years ago
```