Program Requirements Create a cmd line terminal based progr

 Program Requirements: Create a (cmd line / terminal) based program:  No partners on this assignment.  Do not share code or look at others code    (you may look at your previous code or class resource materials only)  Do not use OS specific commands like pause, clear, clr, etc.  for the terminal GUI (This way it will compile and work for all c++ compilers)   Use provided Header file I_Life.h   Rules The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive or dead. Every cell interacts with its eight neighbors, which are the cells that are horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur:    1. Any live cell with fewer than two live neighbors dies, as if caused by under-population.   2. Any live cell with two or three live neighbors lives on to the next generation.   3. Any live cell with more than three live neighbors dies, as if by over-population.   4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.  The initial pattern constitutes the seed of the system. The first generation is created by applying the above rules simultaneously to every cell in the seed—births and deaths occur simultaneously, and the discrete moment at which this happens is sometimes called a tick (in other words, each generation is a pure function of the preceding one). The rules continue to be applied repeatedly to create further generations. (Wikipidia Oct. 5th 2015)     Use a class implementation  Use provided Pure verbal functions  Only submit 3 files:    main.cpp    life.h       <-headers and function prototypes    life.cpp     <-functions definitions   Comment each Function // Parameters? // What it Does? // What it Returns?       life class:         +printIntro(void):void         +printSeedRequest(void):void         +printBoard(void):void         +pauseGame(void):void         +initilizeBoard(void):void         +evalBoard(void):void         +isGameOver(void):bool           -validateSeed(void):bool         -boardPrev[10][10]:unsigned int         -boardCopy[10][10]:unsigned int         -evalNeighbours(int x, int y):int         -inbounds(int x, int y):bool         -m_seed: unsigned int     BOARD SIZE 10   Game display:          Welcome to Conway’s Game of Life                  by Jason Monast          Please enter the random seed: 7                * * * * * * * *   *               * * * * * * * * *                 *   *   *   *                     * * * * * * * * *                 * * * * * * * * *                 * * * * * * * * * *               * * * * * * * * * *               * * * * * * * * * *               * * * * * * * * * *               * * * * * * * * * *          Press enter to continue:  

Solution

#include <iostream>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int rows = 30;

coloums= 40;

static final int dead = 0

int alive =1;

int[] [] state

int main {
 Program Requirements: Create a (cmd line / terminal) based program: No partners on this assignment. Do not share code or look at others code (you may look at y

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site