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; }
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; } }