X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=0c5224642c191856bc458426597abdcee8e7edbb;hp=2612fb52fa88762474170f182a1ef98846180b04;hb=be6fafd0793d934c31925832b4bde569b5abd5b9;hpb=3fd7e37868ce3a770ab5ca5ef686f75c8aa348f4 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