In this 20 x 20 grid this is generation 1 and after 1 second new generation starts, black cells are dead and white cells are alive, keep the following rules in mind :
- 1)Any live cell with two or three live neighbours survives.
- 2)Any dead cell with three live neighbours becomes a live cell.
- 3)All other live cells die in the next generation. Similarly, all other dead cells stay dead.
Playing by the rules,
Return the number of diagonals of the polygon formed by the number xyz placed side to side
Where x is the number of generations after which the Amogus dies, if it never dies keep x = 0;
Where y is the number of generations after which the sun repeats itself;
Where z is the number of generations after which the two boxes repeat themselves.