game.cpp
void Game::load_data(int size, string mode)
{
    if(mode == "true"||mode == "false")
    {
        
        Game g1(size, mode);
        g1.set_grid();
        g1.gameplay(mode);
        
    }
    else
    {
        cout<< "Invalid command line"<<endl;
    }
    
    
}
/*********************************************************************
** Function: load_data
** Description: this function calls non-default constructor for game
and also calls function set_grid and gameplay
** Parameters: int size, string mode
** Pre-Conditions: int size cannot be less than 4, mode can be only "true" or "false"
** Post-Conditions: dynamically allocates memory, populates events, set grid.
*********************************************************************/
load_data
Description: this function calls non-default constructor for game
and also calls function set_grid and gameplay
Parameters: int size, string mode
Pre-Conditions: int size cannot be less than 4, mode can be only "true" or "false"
Post-Conditions: dynamically allocates memory, populates events, set grid.
load_data Description : this function calls non - default constructor for game and also calls function set_grid and gameplay Parameters : int size string mode Pre - Conditions : int size cannot be less than 4 mode can be only " true " or " false " Post - Conditions : dynamically allocates memory populates events set grid .
void Game::load_data(int size, string mode)
{
    if(mode == "true"||mode == "false")
    {
        Game g1(size, mode);
        g1.set_grid();
        g1.gameplay(mode);
    }
    else
    {
        cout<< "Invalid command line"<<endl;
    }
}
void Game :: load_data ( int size , string mode ) { if ( mode == " " || mode == " " ) { Game g1 ( size , mode ) ; g1 . set_grid ( ) ; g1 . gameplay ( mode ) ; } else { cout << " " << endl ; } }
Function: load_data
Description: this function calls non-default constructor for game
and also calls function set_grid and gameplay
Parameters: int size, string mode
Pre-Conditions: int size cannot be less than 4, mode can be only "true" or "false"
Post-Conditions: dynamically allocates memory, populates events, set grid.
Function : load_data Description : this function calls non - default constructor for game and also calls function set_grid and gameplay Parameters : int size string mode Pre - Conditions : int size cannot be less than 4 mode can be only " true " or " false " Post - Conditions : dynamically allocates memory populates events set grid .