ulong AllRookSlides() { ulong rook = figureCoord.coord.GetBit(); ColorType color = figureCoord.figure.GetColor(); ulong stops = board.GetOwnedBits(); return ((Slide6(rook, stops) | Slide4(rook, stops) | Slide8(rook, stops) | Slide2(rook, stops)) & ~board.GetColorBits(color)); }
ulong AllKnightMoves() { ulong knight = figureCoord.coord.GetBit(); ColorType color = figureCoord.figure.GetColor(); return(AllKnightSquares(knight) & ~board.GetColorBits(color)); }
ulong AllKingMoves() { ulong king = figureCoord.coord.GetBit(); ColorType color = figureCoord.figure.GetColor(); return(AllKingSquares(king) & ~board.GetColorBits(color)); }