Elementary cellular automaton: Difference between revisions
Content added Content deleted
Line 1,549: | Line 1,549: | ||
apply_rules(I, Next), |
apply_rules(I, Next), |
||
succ(N1, N), |
succ(N1, N), |
||
play(N1, Next). |
play(N1, Next). |
||
r(0,0,0,0). |
r(0,0,0,0). |
||
Line 1,571: | Line 1,571: | ||
writ(1) :- write(1). |
writ(1) :- write(1). |
||
initial([0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0]). |
initial([0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0]).</lang> |
||
=={{header|Python}}== |
=={{header|Python}}== |