X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=738fe8c9968272de24ec578a636eba5c032d37df;hp=d09dce08c22a6f9fe93772cbee22b733bb13daf7;hb=239d7b3fd144d2b493bb47ea97a436cec8ae5990;hpb=116234d6c6e5cd7517cafd3ffa47fff92c6c3f42 diff --git a/src/position.h b/src/position.h index d09dce08..738fe8c9 100644 --- a/src/position.h +++ b/src/position.h @@ -93,13 +93,13 @@ class Position { public: Position() {} Position(const Position& p, Thread* t) { *this = p; thisThread = t; } - Position(const std::string& f, bool c960, Thread* t) { from_fen(f, c960, t); } + Position(const std::string& f, bool c960, Thread* t) { set(f, c960, t); } Position& operator=(const Position&); // Text input/output - void from_fen(const std::string& fen, bool isChess960, Thread* th); - const std::string to_fen() const; - void print(Move m = MOVE_NONE) const; + void set(const std::string& fen, bool isChess960, Thread* th); + const std::string fen() const; + const std::string pretty(Move m = MOVE_NONE) const; // Position representation Bitboard pieces() const;