Exemple #1
0
        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));
        }
Exemple #2
0
        ulong AllKnightMoves()
        {
            ulong     knight = figureCoord.coord.GetBit();
            ColorType color  = figureCoord.figure.GetColor();

            return(AllKnightSquares(knight) & ~board.GetColorBits(color));
        }
Exemple #3
0
        ulong AllKingMoves()
        {
            ulong     king  = figureCoord.coord.GetBit();
            ColorType color = figureCoord.figure.GetColor();

            return(AllKingSquares(king) & ~board.GetColorBits(color));
        }