Game of life python Rules of the game: E = state of the cell (bool: 0 = dead, 1 = alive) S = number of alive cells (int: from 0 to 8) if S = 3: E = 1 if S = 2: E = E else: E = 0