From 135d8ffb60839a6863d423a8c383b996ed0c937b Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 12 Jul 2012 12:02:36 +0200 Subject: [PATCH] Beter tuning of time control Reduce target time, and keep a larger safety margin. --- hachu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.0.4