From 5b8df2b7f53ff7c9c980beecc5d3e74f8d11b563 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 29 May 2018 17:09:51 +0200 Subject: [PATCH] Fix periodic updates The number of moves yet to go was off by one. In addition we now ignore zapped moves at the end of the list, so it will be obvious when the engine is working on the last move of the iteration. --- dropper.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dropper.c b/dropper.c index efe22c1..36e0fa5 100644 --- a/dropper.c +++ b/dropper.c @@ -1872,8 +1872,9 @@ printf("# command: %s\n", inBuf); if(!strcmp(command, "nopost")) { postThinking = OFF;return 0; } if(!strcmp(command, "random")) { randomize = ON; return 0; } if(!strcmp(command, ".")) { // periodic update request; + while(rootLast > rootFirst && !moveStack[rootLast]) rootLast--; printf("stat01: %d %d %d %d %d %s\n", ReadClock(0, 1)/10, nodeCount, rootPly, - rootLast - rootCurrent + 1, rootLast - rootFirst, MoveToText(moveStack[rootCurrent])); + rootLast - rootCurrent, rootLast - rootFirst, MoveToText(moveStack[rootCurrent])); fflush(stdout); return 0; } if(!strcmp(command, "option")) { // setting of engine-define option; find out which -- 1.7.0.4