One-dimensional cellular automata: Difference between revisions

m
→‎{{header|PureBasic}}: still a minor change
m (→‎{{header|PureBasic}}: The output is now as in the other languages)
m (→‎{{header|PureBasic}}: still a minor change)
Line 1,165:
PrintN("")
For n=1 To 20
If (cG(n)= 1 And (cG(n-1)+ XOr cg(n+1)=1)) Or (Not cG(n)= 0 And (cG(n-1)+ And cg(n+1)=2))
nG(n)=1
Else
49

edits