(y, x, get_cell, set_cell)
| 154 | |
| 155 | print("Example 6") |
| 156 | def step_cell(y, x, get_cell, set_cell): |
| 157 | state = get_cell(y, x) |
| 158 | neighbors = count_neighbors(y, x, get_cell) |
| 159 | next_state = game_logic(state, neighbors) |
| 160 | set_cell(y, x, next_state) |
| 161 | |
| 162 | |
| 163 | alive = {(10, 5), (9, 5), (9, 6)} |
no test coverage detected