added SEE to QS | bench 3986957

This commit is contained in:
rektdie committed 2025-05-20 22:29:18 +02:00
1 parent 5e18083113
commit a529a949f0
4 files changed
+109 -4

No files matched your search

+3 -3
View File
@@ -523,7 +523,7 @@ void Board::ResetAccPair() {
}
}
Bitboard Board::AttacksTo(int square) {
Bitboard Board::AttacksTo(int square, Bitboard occupancy) {
Bitboard attacks;
// Pawn attacks
@@ -540,8 +540,8 @@ Bitboard Board::AttacksTo(int square) {
// King
attacks |= (MOVEGEN::kingAttacks[square] & pieces[King]);
Bitboard bishopAttacks = MOVEGEN::getBishopAttack(square, occupied);
Bitboard rookAttacks = MOVEGEN::getRookAttack(square, occupied);
Bitboard bishopAttacks = MOVEGEN::getBishopAttack(square, occupancy);
Bitboard rookAttacks = MOVEGEN::getRookAttack(square, occupancy);
// Rook or queen
attacks |= (rookAttacks & (pieces[Rook] | pieces[Queen]));