Question: For this assignment you will be creating a program to run Conway's Game of Life. The program should have the following features: It follows Conway's

For this assignment you will be creating a program to run Conway's Game of Life. The program should have the following features: It follows Conway's Game of Life Rules). It uses a life 'board' that is 15 cells high by 40 cells wide. (This should be changeable in the code by change two values, or you make allow the user to pick a size.) It allows the user to choose a random board configuration or to enter a configuration by entering the "row column" coordinates of the initial alive cells (entering"-1-1" to stop entering coordinates). It allows the user to choose how many iterations to run the game of life for. It includes a life class that manages the life grid. The class is defined in a separate file. The life class should hide the gird data and contain both public member functions and private helper member functions (e.g. a count neighbors() type function). There may be a separate utilities.h file for helper functions. 1. gameoflife.cpp - this is the main C++ file. Following the approach in the text and in class it should be quite short. 2. life.h - this is the C++ file that defines the life class. It will contain the majority of the code. 3. output 1.txt - this is the first output file. It should be collected with the script command. It should show several iterations of your program. It should show both a random start and a start where the user chooses the live cells, and show the user choosing different numbers of iterations (e.g. run 1 step, run 5 steps, etc.) 4. output2.txt - this is another output file. It should show the configuration after exactly 100 steps starting from the configuration 5. utilities.h - this file is optional. If your program uses general helper functions, like user yes no, include this file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
