One-dimensional cellular automata: Difference between revisions
Content added Content deleted
m (→{{header|PureBasic}}: The output is now as in the other languages) |
m (→{{header|PureBasic}}: still a minor change) |
||
Line 1,165: | Line 1,165: | ||
PrintN("") |
PrintN("") |
||
For n=1 To 20 |
For n=1 To 20 |
||
If (cG(n) |
If (cG(n) And (cG(n-1) XOr cg(n+1))) Or (Not cG(n) And (cG(n-1) And cg(n+1))) |
||
nG(n)=1 |
nG(n)=1 |
||
Else |
Else |