Question: C++, write a program that gives a 10 by 10 game board and has 10 generations Project The Game of Life The life game consists
Project The Game of Life The life game consists of a board with size of NxN cells and cells are occupied by creatures. Each cell can have at most one creature. The surrounding cells are called the neighbors of this cell. e is called "generation". The game progresses from one generation to the next according to the following rules: 1. A creature that has more than 3 neighbors - dies of crowding. Its cell will be empty in the 2. A creature that has less than 2 neighbors dies of loneliness. 3. If an empty cell that has exactly 3 neighbors, a new creature is born in that cell. next generation. Write a program that consists of a 10 x 10 cell grid board. The program will prompt for the initial state of the world and the number of generations to be played. After each generation the program will update the state of the board and will display the updated board. The program can stop if it has reached the number of required generations or if no further changes occur (i.e., no more creatures alive or it has reached a steady or repeating pattern)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
