X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=9737d7614981756382ab2fc150f149fa24f95c2b;hp=aa7c7ab8b78754e19728afd59512c7deff736ec5;hb=b1e79fed99d52dcb20d2d6a9c62522226e957963;hpb=1b0888708d670f95a75da49f7890d916b51a58b0 diff --git a/src/position.h b/src/position.h index aa7c7ab8..9737d761 100644 --- a/src/position.h +++ b/src/position.h @@ -138,8 +138,8 @@ public: void print(Move m = MOVE_NONE) const; // Copying - void copy(const Position &pos); - void flipped_copy(const Position &pos); + void copy(const Position& pos); + void flipped_copy(const Position& pos); // The piece on a given square Piece piece_on(Square s) const; @@ -250,7 +250,7 @@ public: bool square_is_weak(Square s, Color c) const; // Doing and undoing moves - void setStartState(const StateInfo& st); + void saveState(); void do_move(Move m, StateInfo& st); void do_move(Move m, StateInfo& st, Bitboard dcCandidates); void undo_move(Move m);