mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Rename Position::hidden_checkers to check_blockers
No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
262c380c4b
commit
db05b1f9f5
+3
-3
@@ -174,7 +174,7 @@ private:
|
||||
|
||||
// Helper functions
|
||||
void do_castling(Square kfrom, Square kto, Square rfrom, Square rto);
|
||||
Bitboard hidden_checkers(Color c, Color kingColor) const;
|
||||
Bitboard check_blockers(Color c, Color kingColor) const;
|
||||
void put_piece(Square s, Color c, PieceType pt);
|
||||
void remove_piece(Square s, Color c, PieceType pt);
|
||||
void move_piece(Square from, Square to, Color c, PieceType pt);
|
||||
@@ -315,11 +315,11 @@ inline Bitboard Position::checkers() const {
|
||||
}
|
||||
|
||||
inline Bitboard Position::discovered_check_candidates() const {
|
||||
return hidden_checkers(sideToMove, ~sideToMove);
|
||||
return check_blockers(sideToMove, ~sideToMove);
|
||||
}
|
||||
|
||||
inline Bitboard Position::pinned_pieces(Color c) const {
|
||||
return hidden_checkers(c, c);
|
||||
return check_blockers(c, c);
|
||||
}
|
||||
|
||||
inline bool Position::pawn_passed(Color c, Square s) const {
|
||||
|
||||
Reference in New Issue
Block a user