]> git.sesse.net Git - stockfish/blobdiff - src/timeman.cpp
Tweak statScore condition
[stockfish] / src / timeman.cpp
index ea1e92d2aca5ca57ef0c6c2a6942ea2717d65753..2612fb52fa88762474170f182a1ef98846180b04 100644 (file)
@@ -64,12 +64,9 @@ namespace {
     int time = int(std::min(1.0, ratio) * std::max(0, myTime - moveOverhead));
 
     if (type == OptimumTime && ponder)
-        time *= 1.25;
+        time = 5 * time / 4;
 
-    if (type == MaxTime)
-        time -= 10; // Keep always at least 10 millisecs on the clock
-
-    return std::max(0, time);
+    return time;
   }
 
 } // namespace