Elementary cellular automaton/Infinite length: Difference between revisions

m
→‎{{header|Raku}}: Fix link: Perl 6 --> Raku
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (→‎{{header|Raku}}: Fix link: Perl 6 --> Raku)
Line 871:
This version, while it is ''capable'' of working with infinite length cellular automata, makes the assumption that any cells which have not been explicitly examined are in a 'null' state, neither '0' or '1'. Further it makes the assumption that a null cell, on being examined, initially contains nothing (░). Otherwise it would take infinite time to calculate every row and would be exceptionally boring to watch.
 
Based heavily on the code from the [[One-dimensional_cellular_automata#Perl_6Raku|One-dimensional cellular automata]] task. Example uses rule 90 (Sierpinski triangle).
 
<lang perl6>class Automaton {
2,392

edits