X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=11d31f8a80d17cb445f9d24e89bfd8f36393c0fd;hp=ae750697aa894b423fa52e15f5fb4a7d8f93f0eb;hb=f9f30412e798b4ba06375a383a85a9e65bfe299f;hpb=da7a62852ab5e96d24bb4fd2f062d488684738b1 diff --git a/src/position.h b/src/position.h index ae750697..11d31f8a 100644 --- a/src/position.h +++ b/src/position.h @@ -240,6 +240,7 @@ public: bool square_is_weak(Square s, Color c) const; // Doing and undoing moves + void setStartState(const StateInfo& st); void do_move(Move m, StateInfo& st); void undo_move(Move m); void do_null_move(StateInfo& st); @@ -294,7 +295,6 @@ private: void allow_ooo(Color c); // Helper functions for doing and undoing moves - void init_new_state(StateInfo& newSt); void do_capture_move(Move m, PieceType capture, Color them, Square to); void do_castle_move(Move m); void do_promotion_move(Move m); @@ -303,7 +303,9 @@ private: void undo_promotion_move(Move m); void undo_ep_move(Move m); void find_checkers(); - void find_pinned(); + void find_hidden_checks(Color us); + void find_hidden_checks(); + void update_hidden_checks(Square from, Square to); template void update_checkers(Bitboard* pCheckersBB, Square ksq, Square from, Square to, Bitboard dcCandidates);