X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=e7dc3a802fca35ae821517815650dfb692db7eef;hp=a1d53f042c8cb111124746c0b68919bb6285ddb5;hb=84ec1f7331f402f4ab2e2201b72b3ee378cce659;hpb=b1ac6c69a077c95c122a82d5b757adf9470fb308 diff --git a/src/position.h b/src/position.h index a1d53f04..e7dc3a80 100644 --- a/src/position.h +++ b/src/position.h @@ -146,7 +146,7 @@ public: }; // Constructors - Position() {} + Position(); Position(const Position& pos); Position(const std::string& fen); @@ -156,7 +156,7 @@ public: void print(Move m = MOVE_NONE) const; // Copying - void copy(const Position& pos); + void fast_copy(const Position& pos); void flipped_copy(const Position& pos); // The piece on a given square @@ -234,7 +234,7 @@ public: bool square_is_weak(Square s, Color c) const; // Doing and undoing moves - void saveState(); + void detach(); void do_move(Move m, StateInfo& st); void do_move(Move m, StateInfo& st, const CheckInfo& ci, bool moveIsCheck); void undo_move(Move m);