From: H.G. Muller Date: Sat, 1 Jun 2013 21:03:20 +0000 (+0200) Subject: Fix setting oldBest X-Git-Tag: 0.18~37 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=916ab045817a7190b9e62a5b042e28909aa92b9f;p=hachu.git Fix setting oldBest --- diff --git a/hachu.c b/hachu.c index 14abe82..918ef49 100644 --- a/hachu.c +++ b/hachu.c @@ -1644,6 +1644,7 @@ if(PATH) /*pboard(board),pmap(attacks, BLACK),*/printf("search(%d) {%d,%d} eval= replyDep = (depth < 1 ? depth-1 : iterDep); while(++iterDep <= depth || iterDep == 1) { if(flag && depth>= 0) printf("iter %d:%d\n", depth,iterDep),fflush(stdout); + oldBest = bestScore; iterAlpha = alpha; bestScore = -INF; bestMoveNr = 0; resDep = 60; for(curMove = firstMove; ; curMove++) { // loop over moves if(flag && depth>= 0) printf("phase=%d: first/curr/last = %d / %d / %d\n", phase, firstMove, curMove, msp);fflush(stdout);