]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Introduce update_checkers() to simplify do_move()
[stockfish] / src / position.h
index 4b524ec463e0b1be67a460dc9ee64cef04daf6da..d05546f75ff7d6cae1157d92be10ae79b86eb37c 100644 (file)
@@ -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<PieceType Piece>
+  void update_checkers(Bitboard* pCheckersBB, Square ksq, Square from, Square to, Bitboard dcCandidates);
+
   template<PieceType Piece, bool FindPinned>
   Bitboard hidden_checks(Color c, Square ksq) const;