One-dimensional cellular automata: Difference between revisions
Content added Content deleted
Line 3,105: | Line 3,105: | ||
===More sophisticated=== |
===More sophisticated=== |
||
Computing the next generation becomes much cleaner once you invest a few LoC in a new datatype. |
|||
<lang python>def (uca l) # new datatype: unidim CA |
<lang python>def (uca l) # new datatype: unidim CA |
||
(tag uca (list l len.l)) |
(tag uca (list l len.l)) |