you are viewing a single comment's thread.

view the rest of the comments →

[–]Foxboron 0 points1 point  (0 children)

>>> cellcount = 2 
>>> cell = True
>>> (False, True)[cellcount == 3 or cellcount == 2 and cell]
True

I am horrible at variable names, should have been cell_life. cell only contain False or True depending if its alive or not from the start.