From: H.G. Muller Date: Thu, 12 Jul 2012 10:02:36 +0000 (+0200) Subject: Beter tuning of time control X-Git-Tag: 0.18~86 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=135d8ffb60839a6863d423a8c383b996ed0c937b;p=hachu.git Beter tuning of time control Reduce target time, and keep a larger safety margin. --- diff --git a/hachu.c b/hachu.c index 903838d..176039f 100644 --- a/hachu.c +++ b/hachu.c @@ -1692,10 +1692,10 @@ SearchBestMove (int stm, int timeLeft, int mps, int timeControl, int inc, int ti { int score, targetTime, movesLeft = 50; if(mps) movesLeft = mps - (moveNr>>1)%mps; - targetTime = timeLeft*10 / (movesLeft + 1) + 1000 * inc; + targetTime = timeLeft*10 / (movesLeft + 2) + 1000 * inc; if(timePerMove > 0) targetTime = timeLeft * 5; startTime = GetTickCount(); - tlim1 = 0.3*targetTime; + tlim1 = 0.2*targetTime; tlim2 = 1.9*targetTime; nodes = 0; MapFromScratch(attacks);