One-dimensional cellular automata: Difference between revisions

Content added Content deleted
(Added BBC BASIC)
Line 285: Line 285:
rule$() = "0", "0", "0", "1", "0", "1", "1", "0"
rule$() = "0", "0", "0", "1", "0", "1", "1", "0"
now$ ="01110110101010100100"
now$ = "01110110101010100100"
FOR generation% = 0 TO 9
FOR generation% = 0 TO 9
PRINT "Generation " ; generation% ": ", now$
PRINT "Generation " ; generation% ":", now$
next$ = ""
next$ = ""
FOR cell% = 1 TO LEN(now$)
FOR cell% = 1 TO LEN(now$)