X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=8ebd542a95609b9e21f0432e8e74c10d08407357;hp=ba399b128c45ea7ab30c4440d71682fe1817ba25;hb=aa60c80adec4d537c5dbd8d60b3d08ce0a807d9a;hpb=5cbcff55cc3a2ff78dd83e7a3f94c5414946f82c diff --git a/src/position.cpp b/src/position.cpp index ba399b12..8ebd542a 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -25,12 +25,12 @@ #include "bitcount.h" #include "movegen.h" -#include "notation.h" #include "position.h" #include "psqtab.h" #include "rkiss.h" #include "thread.h" #include "tt.h" +#include "uci.h" using std::string; @@ -423,7 +423,7 @@ const string Position::fen() const { if (!can_castle(WHITE) && !can_castle(BLACK)) ss << '-'; - ss << (ep_square() == SQ_NONE ? " - " : " " + to_string(ep_square()) + " ") + ss << (ep_square() == SQ_NONE ? " - " : " " + UCI::to_string(ep_square()) + " ") << st->rule50 << " " << 1 + (gamePly - (sideToMove == BLACK)) / 2; return ss.str(); @@ -450,7 +450,7 @@ const string Position::pretty() const { << std::setfill('0') << std::setw(16) << st->key << "\nCheckers: "; for (Bitboard b = checkers(); b; ) - ss << to_string(pop_lsb(&b)) << " "; + ss << UCI::to_string(pop_lsb(&b)) << " "; return ss.str(); }