coins/TwelveCoins.cpp
/**
 * @brief: Compares our calculated odd coin against the actual odd coin to see if we were correct
 *           about it's index and if its heavier or lighter than the rest.
 * 
 * @return:Returns true or false if our calculated coin is the odd one out (if one exists).
 */
@brief: Compares our calculated odd coin against the actual odd coin to see if we were correct
about it's index and if its heavier or lighter than the rest.

@return:Returns true or false if our calculated coin is the odd one out (if one exists).
@brief : Compares our calculated odd coin against the actual odd coin to see if we were correct about it ' s index and if its heavier or lighter than the rest . @return : Returns true or false if our calculated coin is the odd one out ( if one exists ) .
bool TwelveCoins::validate(coin out, coin ans)
{
    if (out.getIndex() == ans.getIndex() && out.getWeight() == ans.getWeight())
        return 1; 
    std::cout << "out index,weight: " << out.getIndex() << " " << out.getWeight() << " ans index,weight: " << ans.getIndex() << " " << ans.getWeight() << std::endl;
    return 0; 
}
bool TwelveCoins :: validate ( coin out , coin ans ) { if ( out . getIndex ( ) == ans . getIndex ( ) && out . getWeight ( ) == ans . getWeight ( ) ) return 1 ; std :: cout << " " << out . getIndex ( ) << " " << out . getWeight ( ) << " " << ans . getIndex ( ) << " " << ans . getWeight ( ) << std :: endl ; return 0 ; }
@brief: Compares our calculated odd coin against the actual odd coin to see if we were correct
           about it's index and if its heavier or lighter than the rest.
@brief : Compares our calculated odd coin against the actual odd coin to see if we were correct about it ' s index and if its heavier or lighter than the rest .
// true // false