X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=11d5adc644ebf2ef3693d10c79e50f735bf4196c;hp=8b35e6fdd56a96869de49aa2c8c925cf9cbc2e3a;hb=995ee4b31105ad8c7976cc68c11fabfdc5108e63;hpb=9f800a25775ddb5335a20eac92d8d288ca74f4c2 diff --git a/src/uci.cpp b/src/uci.cpp index 8b35e6fd..11d5adc6 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -115,7 +115,7 @@ namespace { limits.startTime = now(); // As early as possible! while (is >> token) - if (token == "searchmoves") + if (token == "searchmoves") // Needs to be the last command on the line while (is >> token) limits.searchmoves.push_back(UCI::to_move(pos, token)); @@ -260,7 +260,7 @@ string UCI::value(Value v) { stringstream ss; - if (abs(v) < VALUE_MATE - MAX_PLY) + if (abs(v) < VALUE_MATE_IN_MAX_PLY) ss << "cp " << v * 100 / PawnValueEg; else ss << "mate " << (v > 0 ? VALUE_MATE - v + 1 : -VALUE_MATE - v) / 2;