X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=hachu.c;h=918ef4953303b29cc2196e19803cb625ac5ed465;hb=916ab045817a7190b9e62a5b042e28909aa92b9f;hp=14abe828ab6096127c2df420e12499a237ccef67;hpb=52f1875c92e47832c580d404b1c17bd9260f0d99;p=hachu.git 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);