X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.h;h=8765aac049a9e75520fab73719f43ddbb4c80dd5;hb=a56e1c662c3aa04b88744d62790daa10c01cdc78;hp=5ae75655658fc69276391a6aafcf4b5d02453c45;hpb=af59cb1d63234fe5c711f4a0dc28d56fe79d1274;p=stockfish diff --git a/src/position.h b/src/position.h index 5ae75655..8765aac0 100644 --- a/src/position.h +++ b/src/position.h @@ -197,8 +197,6 @@ public: // Bitboards for pinned pieces and discovered check candidates Bitboard discovered_check_candidates(Color c) const; Bitboard pinned_pieces(Color c) const; - template - Bitboard pinned_pieces(Color c, Square ksq) const; // Checking pieces Bitboard checkers() const; @@ -219,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; @@ -307,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;