Example #1
0
    Move reversed() const
    {
        Move result = *this;
        if (isRedWin())
            result.mType = MOVE_WW;
        else if (isWhiteWin())
            result.mType = MOVE_RW;

        for (unsigned i=0; i < mData.size(); ++i)
            result.mData[i] = 33 - mData[i];

        return result;
    }
Example #2
0
bool State::isWin()
{
    return isBlackWin() || isWhiteWin();
}