Пример #1
0
Status Pass(Postype seat,MazeType maze[][N]) {
    int x = seat.x;
    int y = seat.y;

    if (!IsCross(seat) && maze[x][y] == Way)
        return TRUE;
    else
        return FALSE;
}
Пример #2
0
bool GoEyeUtil::IsNakadeShape(const SgPointSet& area)
{
    switch (area.Size())
    {
        case 1:
        case 2:
        case 3: return true;
        case 4: return IsBulkyFour(area) || IsTShape(area);
        case 5: return IsBulkyFive(area) || IsCross(area);
        case 6: return IsRabbitySix(area);
        default: // too big
            return false;
    }
}