X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=0c5224642c191856bc458426597abdcee8e7edbb;hp=2612fb52fa88762474170f182a1ef98846180b04;hb=287e2e2f74332d59dae2bd01772a74b909b87d22;hpb=86ac50403d58ce94efc1f2f3ab85ac25abdb6db9 diff --git a/src/timeman.cpp b/src/timeman.cpp index 2612fb52..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