X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=7300c9d7bd1b85c8b3125f5220d36ef787ce20d7;hp=f3bb011274e04616809c4b82018047c19d17c4d8;hb=2f21ec39adcfc3a2ce4d4fd08eb1fa688c4e67a7;hpb=b7cb6180cf2a6fcab81dcd1b07f9dd4e650c8ea4 diff --git a/src/position.h b/src/position.h index f3bb0112..7300c9d7 100644 --- a/src/position.h +++ b/src/position.h @@ -87,6 +87,7 @@ struct UndoInfo { Move lastMove; Value mgValue, egValue; PieceType capture; + UndoInfo* previous; }; @@ -241,9 +242,9 @@ public: // Doing and undoing moves void do_move(Move m, UndoInfo &u); - void undo_move(Move m, const UndoInfo &u); + void undo_move(Move m); void do_null_move(UndoInfo &u); - void undo_null_move(const UndoInfo &u); + void undo_null_move(); // Static exchange evaluation int see(Square from, Square to) const; @@ -296,10 +297,10 @@ private: // Helper functions for doing and undoing moves void do_capture_move(Move m, PieceType capture, Color them, Square to); void do_castle_move(Move m); - void do_promotion_move(Move m, UndoInfo &u); + void do_promotion_move(Move m); void do_ep_move(Move m); void undo_castle_move(Move m); - void undo_promotion_move(Move m, const UndoInfo &u); + void undo_promotion_move(Move m); void undo_ep_move(Move m); void find_checkers(); @@ -356,6 +357,7 @@ private: Move lastMove; Value mgValue, egValue; PieceType capture; + UndoInfo* previous; }; };