25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
Mikael Nordin 4e8343ce85
Update ca.cpp
7 yıl önce
2dcellaut.pl New name 8 yıl önce
README.md Update README.md 8 yıl önce
ca.cpp Update ca.cpp 7 yıl önce
cellaut.pl We dont want operator precedence to cet is in trouble 8 yıl önce

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