]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Merge branch 'master' into clusterMergeMaster11
[stockfish] / src / uci.cpp
index 19981b351f35cef3641751495abc2652fbbd80f8..3b4240b4592cb7cf3fced6ff64e18816403e3771 100644 (file)
@@ -172,7 +172,8 @@ namespace {
         if (token == "go" || token == "eval")
         {
             if (Cluster::is_root())
-                cerr << "\nPosition: " << cnt++ << '/' << num << endl;
+                cerr << "\nPosition: " << cnt++ << '/' << num << " (" << pos.fen() << ")" << endl;
+
             if (token == "go")
             {
                go(pos, is, states);
@@ -214,7 +215,7 @@ namespace {
      double b = (((bs[0] * m + bs[1]) * m + bs[2]) * m) + bs[3];
 
      // Transform eval to centipawns with limited range
-     double x = Utility::clamp(double(100 * v) / PawnValueEg, -1000.0, 1000.0);
+     double x = std::clamp(double(100 * v) / PawnValueEg, -1000.0, 1000.0);
 
      // Return win rate in per mille (rounded to nearest)
      return int(0.5 + 1000 / (1 + std::exp((a - x) / b)));