Game.cpp
void Game::setSeed(){
    
    // set time step to zero and fill grid with zeros
    tick = 0;
    evenGrid.clearGrid();
    
    // apply the starting pattern to the grid
    for (int i = 0; i < mySeed.getLength(); i++) {
        evenGrid.setState(xLoc + mySeed.getX(i),
                          yLoc + mySeed.getY(i), 1);
    }
    
    // display the result
    system("clear");
    std::cout << "Tick = " << tick << std::endl;
    evenGrid.displayGrid();
    usleep(1000000); // pause for 1 second
}
/*********************************************************************
 ** Function: setSeed
 ** Description: Apply seed pattern to grid at specified location and
 **   display time step and grid state to screen.
 ** Parameters: A seed object and a grid object.
 ** Pre-Conditions: A seed object named mySeed must contain coordinates
 **   of starting pattern.  A grid object named evenGrid must exist.
 **   The seed pattern must not be larger than the grid.
 ** Post-Conditions: The initial time step and grid state will be 
 **   displayed.
 *********************************************************************/
setSeed
Description: Apply seed pattern to grid at specified location and
display time step and grid state to screen.
Parameters: A seed object and a grid object.
Pre-Conditions: A seed object named mySeed must contain coordinates
of starting pattern.  A grid object named evenGrid must exist.
The seed pattern must not be larger than the grid.
Post-Conditions: The initial time step and grid state will be
displayed.
setSeed Description : Apply seed pattern to grid at specified location and display time step and grid state to screen . Parameters : A seed object and a grid object . Pre - Conditions : A seed object named mySeed must contain coordinates of starting pattern . A grid object named evenGrid must exist . The seed pattern must not be larger than the grid . Post - Conditions : The initial time step and grid state will be displayed .
void Game::setSeed(){
    tick = 0;
    evenGrid.clearGrid();
    for (int i = 0; i < mySeed.getLength(); i++) {
        evenGrid.setState(xLoc + mySeed.getX(i),
                          yLoc + mySeed.getY(i), 1);
    }
    system("clear");
    std::cout << "Tick = " << tick << std::endl;
    evenGrid.displayGrid();
    usleep(1000000); 
}
void Game :: setSeed ( ) { tick = 0 ; evenGrid . clearGrid ( ) ; for ( int i = 0 ; i < mySeed . getLength ( ) ; i ++ ) { evenGrid . setState ( xLoc + mySeed . getX ( i ) , yLoc + mySeed . getY ( i ) , 1 ) ; } system ( " " ) ; std :: cout << " " << tick << std :: endl ; evenGrid . displayGrid ( ) ; usleep ( 1000000 ) ; }
Function: setSeed
 Description: Apply seed pattern to grid at specified location and
   display time step and grid state to screen.
Function : setSeed Description : Apply seed pattern to grid at specified location and display time step and grid state to screen .
// set time step to zero and fill grid with zeros // apply the starting pattern to the grid // display the result // pause for 1 second