From 916ab045817a7190b9e62a5b042e28909aa92b9f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 1 Jun 2013 23:03:20 +0200 Subject: [PATCH] Fix setting oldBest --- hachu.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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); -- 1.7.0.4