Anonymous user
One-dimensional cellular automata: Difference between revisions
→{{header|Euphoria}}: simplified
(→{{header|Euphoria}}: simplified) |
|||
Line 668:
function rules(integer tri)
end function
function next_gen(atom gen)
atom new, bit
▲ new += rules(and_bits(gen,3)*2) -- work with the first bit separately
bit = 2
while gen > 0 do
|