X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fposition.h;h=d05546f75ff7d6cae1157d92be10ae79b86eb37c;hb=1d2247aea39074d8ecea4a5ce81b1cf85165538e;hp=4b524ec463e0b1be67a460dc9ee64cef04daf6da;hpb=8365f8ac1ee7f62db18fca8498b3fdb1640674d9;p=stockfish diff --git a/src/position.h b/src/position.h index 4b524ec4..d05546f7 100644 --- a/src/position.h +++ b/src/position.h @@ -86,8 +86,8 @@ struct UndoInfo { Key key, pawnKey, materialKey; int rule50; Move lastMove; - PieceType capture; Value mgValue, egValue; + PieceType capture; }; @@ -308,6 +308,9 @@ private: void undo_ep_move(Move m); void find_checkers(); + template + void update_checkers(Bitboard* pCheckersBB, Square ksq, Square from, Square to, Bitboard dcCandidates); + template Bitboard hidden_checks(Color c, Square ksq) const;