Homework/HW03/canfield.cc
void updateScore()
{
    //Only add to the score if a card was moved to a foundation.
    if (to == 'f' || to == 'F')
        //Preincrement score then check to see if it is equal to the number of cards the game was
        //played with.  If it is, then the player has won and the flag is set indicating as much.
        if (++score == NUM_CARDS)
            playerHasWon = true;
}
/****************************** updateScore ********************************************************
Action:         Small utility function to check if the score needs to be updated and then does so.
                Also checks to see if the player has won the game if all the cards have been moved
                to the foundations.

Parameters:
IN:             None
OUT:            None

Returns:        Nothing

Precondition:   This function should only be called after a valid move.
***************************************************************************************************/
updateScore
Action:         Small utility function to check if the score needs to be updated and then does so.
Also checks to see if the player has won the game if all the cards have been moved
to the foundations.

None
OUT:            None

Nothing

This function should only be called after a valid move.
updateScore Action : Small utility function to check if the score needs to be updated and then does so . Also checks to see if the player has won the game if all the cards have been moved to the foundations . None OUT : None Nothing This function should only be called after a valid move .
void updateScore()
{
    if (to == 'f' || to == 'F')
        if (++score == NUM_CARDS)
            playerHasWon = true;
}
void updateScore ( ) { if ( to == ' ' || to == ' ' ) if ( ++ score == NUM_CARDS ) playerHasWon = true ; }
updateScore
Action:         Small utility function to check if the score needs to be updated and then does so.
updateScore Action : Small utility function to check if the score needs to be updated and then does so .
//Only add to the score if a card was moved to a foundation. //Preincrement score then check to see if it is equal to the number of cards the game was //played with.  If it is, then the player has won and the flag is set indicating as much.