X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=0c5224642c191856bc458426597abdcee8e7edbb;hp=330709be6985d84be15be778dfc8746eccd0741a;hb=1c50d8cbf554733c0db6ab423b413d75cc0c1928;hpb=fe60caba94de11932d6cdb9bb0282da0221c9f20 diff --git a/src/timeman.cpp b/src/timeman.cpp index 330709be..0c522464 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -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 @@ -64,7 +67,7 @@ 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; return time; }