X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=6d3b7314705f1098273837863d1dedaf4b94a1bd;hp=c7c19f47cce34a8d53cc15cf61c3f87c5d5755a9;hb=7ae3c05795e79c9bd945607cdcfb08198f4c4b45;hpb=351844061eddffac59e7a3c2d16af7ea9661bb3e diff --git a/src/timeman.cpp b/src/timeman.cpp index c7c19f47..6d3b7314 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -52,8 +52,8 @@ namespace { } template - int remaining(int myTime, int movesToGo, int ply, int slowMover) - { + int remaining(int myTime, int movesToGo, int ply, int slowMover) { + const double TMaxRatio = (T == OptimumTime ? 1 : MaxRatio); const double TStealRatio = (T == OptimumTime ? 0 : StealRatio); @@ -81,8 +81,8 @@ namespace { /// inc > 0 && movestogo == 0 means: x basetime + z increment /// inc > 0 && movestogo != 0 means: x moves in y minutes + z increment -void TimeManagement::init(Search::LimitsType& limits, Color us, int ply) -{ +void TimeManagement::init(Search::LimitsType& limits, Color us, int ply) { + int minThinkingTime = Options["Minimum Thinking Time"]; int moveOverhead = Options["Move Overhead"]; int slowMover = Options["Slow Mover"];