X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=eed6d8850873209fbf072e3a1968b783eb9f06d6;hp=5f5bb5a6a0e1111a255b872c71c4d0409157f84a;hb=b8fd1a78dc69f9baba2d8b0079e2d7844fe62958;hpb=413b24380993cfdb7578ebe10b6a71b51bd8fb5b diff --git a/src/position.cpp b/src/position.cpp index 5f5bb5a6..eed6d885 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -123,7 +123,7 @@ std::ostream& operator<<(std::ostream& os, const Position& pos) { << std::setfill('0') << std::setw(16) << pos.st->key << std::dec << "\nCheckers: "; for (Bitboard b = pos.checkers(); b; ) - os << UCI::format_square(pop_lsb(&b)) << " "; + os << UCI::square(pop_lsb(&b)) << " "; return os; } @@ -444,7 +444,7 @@ const string Position::fen() const { if (!can_castle(WHITE) && !can_castle(BLACK)) ss << '-'; - ss << (ep_square() == SQ_NONE ? " - " : " " + UCI::format_square(ep_square()) + " ") + ss << (ep_square() == SQ_NONE ? " - " : " " + UCI::square(ep_square()) + " ") << st->rule50 << " " << 1 + (gamePly - (sideToMove == BLACK)) / 2; return ss.str();