game.cpp
void Game::print_status()
{
    if(gold == true && wumpus == true)//win
    {
        cout<<"CURRENT PROGRESS:"<<endl;
        cout << pos1 << "\n\n";
        alive = false;
        
    }
    else if(arrows <= 0 && wumpus == false)
    {
        cout <<arrow1<<endl;
        alive = false;
    }
    else if(arrows <= 0 && wumpus == true)
    {
        cout <<arrow1<<endl;
    }
    else if(gold == false && wumpus == true)//need gold
    {
        cout<<"CURRENT PROGRESS:"<<endl;
        cout << pos3 << "\n\n";
        
    }
    else if(gold == true && wumpus == false)//kill wumpus
    {
        cout<<"CURRENT PROGRESS:"<<endl;
        cout << pos2 << "\n\n";
    }
}
/*********************************************************************
** Function: print_status
** Description: this function prints out the information about
current status of the player in the game
** Parameters: none
** Pre-Conditions: arrows, gold, wumpus
** Post-Conditions: depends of pre conditions
*********************************************************************/
print_status
Description: this function prints out the information about
current status of the player in the game
Parameters: none
Pre-Conditions: arrows, gold, wumpus
Post-Conditions: depends of pre conditions
print_status Description : this function prints out the information about current status of the player in the game Parameters : none Pre - Conditions : arrows gold wumpus Post - Conditions : depends of pre conditions
void Game::print_status()
{
    if(gold == true && wumpus == true)
    {
        cout<<"CURRENT PROGRESS:"<<endl;
        cout << pos1 << "\n\n";
        alive = false;
    }
    else if(arrows <= 0 && wumpus == false)
    {
        cout <<arrow1<<endl;
        alive = false;
    }
    else if(arrows <= 0 && wumpus == true)
    {
        cout <<arrow1<<endl;
    }
    else if(gold == false && wumpus == true)
    {
        cout<<"CURRENT PROGRESS:"<<endl;
        cout << pos3 << "\n\n";
    }
    else if(gold == true && wumpus == false)
    {
        cout<<"CURRENT PROGRESS:"<<endl;
        cout << pos2 << "\n\n";
    }
}
void Game :: print_status ( ) { if ( gold == true && wumpus == true ) { cout << " " << endl ; cout << pos1 << " \n \n " ; alive = false ; } else if ( arrows <= 0 && wumpus == false ) { cout << arrow1 << endl ; alive = false ; } else if ( arrows <= 0 && wumpus == true ) { cout << arrow1 << endl ; } else if ( gold == false && wumpus == true ) { cout << " " << endl ; cout << pos3 << " \n \n " ; } else if ( gold == true && wumpus == false ) { cout << " " << endl ; cout << pos2 << " \n \n " ; } }
Function: print_status
Description: this function prints out the information about
current status of the player in the game
Parameters: none
Pre-Conditions: arrows, gold, wumpus
Post-Conditions: depends of pre conditions
Function : print_status Description : this function prints out the information about current status of the player in the game Parameters : none Pre - Conditions : arrows gold wumpus Post - Conditions : depends of pre conditions
//win //need gold //kill wumpus