* The object of the fourth program is to gain hands on experience declaring and using pointers and dynamic memory.
* This program will be an implementation of John Conway's Game of Life. See [Wikipedia entry for Conway's Game of Life] for a more complete discussion.
* Life is a non-interactive game however the user should be able to:
* input a file name for an initial configuration,
* restart the game with a new configuration,
* determine how many steps should be shown and
* quit the game.
* Life is played on a grid (2-dimensional array) of cells.
* Each cell is marked as either dead or alive.
* Each cell has eight neighbors.
* Each step requires applying the following rules to each cell in the grid:
* If a cell is dead and has exactly three live neighbors it becomes alive otherwise it remains dead. (Birth)
* A live cell with two or three live neighbors stays alive. (Survival)
* A live cell with less two neigbors dies. (Dies of loneliness)
* A live cell with more than three neighbors dies. (Dies of overcrowding)
* Theoretically the grid is infinite. The grid for your implementation should be 40 X 80. The grid should be implemented as a 2 dimensional char array.
* The grid should be output after each step. Use spaces for dead cells and a character for live cells. These are constants which should be defined.
* Dynamic memory will be used so that memory for grids are allocated and released as needed.
* Functions with pre and post condition are required.
-will be given to later
* Compile the program using the g++ compiler and the option -Wall as illustrated during class.
* Include internal documentation.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
Linux, no classes , and no structures