I Need Conways Game of Life Coded in c++
Job Description:
The final game of life code should realize the following functions:
Read an input file that describes the initial state of the board The file should have, on the first line, the dimensions of the board The next lines should represent the initial state of the cells.
After, you should have a set of keywords that are shortcuts to create structures e.g: "BLOCK 2 5 3" => creates a 2x2 block whose upper left corner is at coordinates (5;3)
You are free to define your own language here, you may define keywords to specify blocks, oscillators, gliders,
There should be at least 1 such keyword defined, the more the better. Memory allocation should be dynamic, based on the first line of the scenario file.
Example file:
5 3
0 1 0 0 0
1 1 0 0 0
1 0 0 0 0
BLOCK 2 4 1
Should result in the following array in the program
0 1 0 1 1
1 1 0 1 1
1 0 0 0 0
Implement the game of life evolution rules. Program a display of the board. Wrap all these functions into a GameOfLife class. You should define a constructor and a destructor. All attributes should be private Purely internal methods should be private.