[MoveGenerator] Add generateAttackedSquares, fix castling

This commit is contained in:
2022-12-22 23:52:53 +01:00
parent 151da7eb51
commit 0d7f030634
5 changed files with 45 additions and 31 deletions

View File

@@ -29,6 +29,7 @@ private:
static void generateMoves(const Square &from, BitBoard movesBB, MoveVec &moves);
static void generateMovesWithPromotion(const Square &from, BitBoard movesBB, MoveVec &moves);
static BitBoard generateAttackedSquares(const BoardState &bs, BitBoard target, PieceColor opColor);
};
#endif //CHESS_ENGINE_MOVEGENERATOR_HPP