Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
Mikael Nordin 4e8343ce85
Update ca.cpp
před 7 roky
2dcellaut.pl New name před 8 roky
README.md Update README.md před 8 roky
ca.cpp Update ca.cpp před 7 roky
cellaut.pl We dont want operator precedence to cet is in trouble před 8 roky

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