X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=8765aac049a9e75520fab73719f43ddbb4c80dd5;hb=4397e6c03e72881a0a477c61c7d17c040c6fdb92;hp=48f40dac47e66598b97f1384490861cc6c2ac7aa;hpb=5dc23121215039938a9ef4e59ae934312774571c;p=stockfish diff --git a/src/position.h b/src/position.h index 48f40dac..8765aac0 100644 --- a/src/position.h +++ b/src/position.h @@ -217,8 +217,8 @@ public: bool piece_attacks_square(Square f, Square t) const; // Dispatch at run-time // Properties of moves - bool move_is_legal(Move m) const; - bool move_is_legal(Move m, Bitboard pinned) const; + bool pl_move_is_legal(Move m) const; + bool pl_move_is_legal(Move m, Bitboard pinned) const; bool move_is_check(Move m) const; bool move_is_check(Move m, Bitboard dcCandidates) const; bool move_is_capture(Move m) const; @@ -305,6 +305,9 @@ private: void undo_ep_move(Move m); void find_checkers(); + template + Bitboard hidden_checks(Color c, Square ksq) const; + // Computing hash keys from scratch (for initialization and debugging) Key compute_key() const; Key compute_pawn_key() const; @@ -553,7 +556,7 @@ inline Bitboard Position::checkers() const { } inline bool Position::is_check() const { - return checkers() != EmptyBoardBB; + return checkersBB != EmptyBoardBB; } inline bool Position::pawn_attacks_square(Color c, Square f, Square t) const {