Conway's Game of Life is a simple algorithm that produces complex and often beautiful results. It is played on a grid and follows the rules below.
If the grid above is generation 1, what is the number of the last generation with living cells?
Details and assumptions
Every cell not on the edges of the grid has \( 8 \) neighbors: namely, any cell that is horizontally, vertically, or diagonally adjacent.
A generation constitutes one simultaneous application of the rules to every cell in the grid.
If you are interested in the idea of self-organization, you might also like this problem.