X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=c132c8f88a5bb56c576108f2486ca66dad38997d;hp=f3bb011274e04616809c4b82018047c19d17c4d8;hb=9b257ba29de2b0d50b6bdbd175509fdb3aaf8e91;hpb=b7cb6180cf2a6fcab81dcd1b07f9dd4e650c8ea4 diff --git a/src/position.h b/src/position.h index f3bb0112..c132c8f8 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,7 +242,7 @@ 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); @@ -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; }; };