]> git.sesse.net Git - stockfish/blobdiff - src/timeman.cpp
Fix premature using of all available time in x/y TC
[stockfish] / src / timeman.cpp
index 2612fb52fa88762474170f182a1ef98846180b04..0c5224642c191856bc458426597abdcee8e7edbb 100644 (file)
@@ -52,6 +52,9 @@ namespace {
         else
             ratio *= 1.5;
 
+        if (movesToGo > 1)
+            ratio = std::min(0.75, ratio);
+
         ratio *= 1 + inc / (myTime * 8.5);
     }
     // Otherwise we increase usage of remaining time as the game goes on