One-dimensional cellular automata: Difference between revisions
Content added Content deleted
No edit summary |
m (→{{header|Euphoria}}: mistype corrected) |
||
Line 658: | Line 658: | ||
new += rules(and_bits(gen,3)*2) -- work with the first bit separately |
new += rules(and_bits(gen,3)*2) -- work with the first bit separately |
||
bit = 2 |
|||
while gen > 0 do |
while gen > 0 do |
||
new += bit*rules(and_bits(gen,7)) |
new += bit*rules(and_bits(gen,7)) |