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.
 
 
Mikael Nordin c5b9bd8ba3
We dont want operator precedence to get us in trouble
8 years ago
2dcellaut.pl New name 8 years ago
README.md Update README.md 8 years ago
ca.c C 8 years ago
cellaut.pl We dont want operator precedence to cet is in trouble 8 years ago

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
              ■
             ■■
            ■■■
           ■■ ■
          ■■■■■
         ■■   ■
        ■■■  ■■
       ■■ ■ ■■■
      ■■■■■■■ ■
     ■■     ■■■
    ■■■    ■■ ■