Random board with cells dead (black) and alive (white)
Iterates row on column.
- If a cell is dead and has exactly three neighbors that are alive, it turns alive.
- If a cell is alive and has either two or three neighbors that are alive, it remains alive.
- If a cell is alive and has fewer than two neighbors that are alive, it dies.
- If a cell is alive and has more than three neighbors that are alive, it dies.