(y, x, get_cell, set_cell)
| 126 | return state |
| 127 | |
| 128 | def step_cell(y, x, get_cell, set_cell): |
| 129 | state = get_cell(y, x) |
| 130 | neighbors = count_neighbors(y, x, get_cell) |
| 131 | next_state = game_logic(state, neighbors) |
| 132 | set_cell(y, x, next_state) |
| 133 | |
| 134 | |
| 135 | print("Example 2") |
nothing calls this directly
no test coverage detected