X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=23d3094fed32630772405ceeeab4404f5095782c;hp=761724ad01d5aa9a1d47d47f37cb4bda5d820a8c;hb=846087e4fb0bd2c330df67b63245f7ead44d8c36;hpb=b08ba446f655ba6292cb0b5a1012e790e4ad8d7d diff --git a/src/position.h b/src/position.h index 761724ad..23d3094f 100644 --- a/src/position.h +++ b/src/position.h @@ -47,6 +47,8 @@ const int MaxGameLength = 220; //// Types //// +class Position; + /// struct checkInfo is initialized at c'tor time and keeps /// info used to detect if a move gives check. @@ -220,8 +222,7 @@ public: bool square_is_weak(Square s, Color c) const; // Doing and undoing moves - void detach(); - void do_setup_move(Move m, StateInfo& St); + void do_setup_move(Move m); void do_move(Move m, StateInfo& st); void do_move(Move m, StateInfo& st, const CheckInfo& ci, bool moveIsCheck); void undo_move(Move m); @@ -276,6 +277,7 @@ private: // Initialization helper functions (used while setting up a position) void clear(); + void detach(); void put_piece(Piece p, Square s); void do_allow_oo(Color c); void do_allow_ooo(Color c);