]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Retuned values after eval quantize patch.
[stockfish] / src / uci.cpp
index 8b35e6fdd56a96869de49aa2c8c925cf9cbc2e3a..11d5adc644ebf2ef3693d10c79e50f735bf4196c 100644 (file)
@@ -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;