mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Another round of bitboard.cpp cleanups
Also renamed StepAttackBB[] in NonSlidingAttacksBB[] No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -524,7 +524,7 @@ Bitboard Position::attacks_from(Piece p, Square s) const {
|
||||
case WB: case BB: return attacks_from<BISHOP>(s);
|
||||
case WR: case BR: return attacks_from<ROOK>(s);
|
||||
case WQ: case BQ: return attacks_from<QUEEN>(s);
|
||||
default: return StepAttackBB[p][s];
|
||||
default: return NonSlidingAttacksBB[p][s];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -537,7 +537,7 @@ Bitboard Position::attacks_from(Piece p, Square s, Bitboard occ) {
|
||||
case WB: case BB: return bishop_attacks_bb(s, occ);
|
||||
case WR: case BR: return rook_attacks_bb(s, occ);
|
||||
case WQ: case BQ: return bishop_attacks_bb(s, occ) | rook_attacks_bb(s, occ);
|
||||
default: return StepAttackBB[p][s];
|
||||
default: return NonSlidingAttacksBB[p][s];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user