Beter tuning of time control
[hachu.git] / hachu.c
diff --git a/hachu.c b/hachu.c
index 903838d..176039f 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -1692,10 +1692,10 @@ SearchBestMove (int stm, int timeLeft, int mps, int timeControl, int inc, int ti
 {\r
   int score, targetTime, movesLeft = 50;\r
   if(mps) movesLeft = mps - (moveNr>>1)%mps;\r
-  targetTime = timeLeft*10 / (movesLeft + 1) + 1000 * inc;\r
+  targetTime = timeLeft*10 / (movesLeft + 2) + 1000 * inc;\r
   if(timePerMove > 0) targetTime = timeLeft * 5;\r
   startTime = GetTickCount();\r
-  tlim1 = 0.3*targetTime;\r
+  tlim1 = 0.2*targetTime;\r
   tlim2 = 1.9*targetTime;\r
   nodes = 0;\r
 MapFromScratch(attacks);\r