X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=hachu.c;h=290fbf261d3b2795d75062964c7e7e9cd37e956f;hb=6a5dda7f317e390eb4ca8368f0cff0594b69b7c7;hp=7fd6fb867be77be6f6a3fbfd4b958c2827865d6e;hpb=8b9b119cd471219b66a0e943381a9621dd04a256;p=hachu.git diff --git a/hachu.c b/hachu.c index 7fd6fb8..290fbf2 100644 --- a/hachu.c +++ b/hachu.c @@ -2029,9 +2029,10 @@ flag=0; int SearchBestMove (int stm, int timeLeft, int mps, int timeControl, int inc, int timePerMove, MOVE *move, MOVE *ponderMove) { - int score, targetTime, movesLeft = 50; + int score, targetTime, movesLeft = BW*BH/4 + 20; if(mps) movesLeft = mps - (moveNr>>1)%mps; targetTime = timeLeft*10 / (movesLeft + 2) + 1000 * inc; + if(moveNr < 30) targetTime *= 0.5 + moveNr/60.; // speedup in opening if(timePerMove > 0) targetTime = timeLeft * 5; startTime = GetTickCount(); tlim1 = 0.2*targetTime;