Birth-Then-Survival
Posted: June 23rd, 2010, 3:26 pm
I'm thinking of a variation on standard Life where birth happens in even generations, and survival/death happens on odd generations, instead of simultaneously like normal Life. This is about how it would go (comments are in parenthesis):
EDIT: This is the 300th topic on Conwaylife.com! Yay! 
Code: Select all
if cellstate 0 has 3 neighbors of cellstate 1, change to cellstate 2
else stay at cellstate 0
end
if cellstate 1 has 0 neighbors of cellstate 1, change to cellstate 2
elseif cellstate 1 has 1 neighbor of cellstate 1, change to cellstate 2
elseif cellstate 1 has 2 neighbors of cellstate 1, change to cellstate 2
elseif cellstate 1 has 3 neighbors of cellstate 1, change to cellstate 2
elseif cellstate 1 has 4 neighbors of cellstate 1, change to cellstate 2
elseif cellstate 1 has 5 neighbors of cellstate 1, change to cellstate 2
elseif cellstate 1 has 6 neighbors of cellstate 1, change to cellstate 2
elseif cellstate 1 has 7 neighbors of cellstate 1, change to cellstate 2
elseif cellstate 1 has 8 neighbors of cellstate 1, change to cellstate 2
else change to cellstate 0
end
(a.k.a. cellstate 1 changes to cellstate 2 no matter how many neighbors it has)
if cellstate 2 has 3 neighbors of cellstate 2, change to cellstate 1
elseif cellstate 2 has 2 neighbors of cellstate 2, change to cellstate 1
else change to cellstate 0
end
(cellstate 0 only counts cellstate 1 neighbors, and cellstate 2 only counts cellstate 2 neighbors)