From: H.G. Muller Date: Sat, 1 Jun 2013 21:12:19 +0000 (+0200) Subject: Process usermove in ponder input X-Git-Tag: 0.18~34 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4ff6161c41af266165541bbc8b370c578b25342e;p=hachu.git Process usermove in ponder input --- diff --git a/hachu.c b/hachu.c index 79c5b75..609f05e 100644 --- a/hachu.c +++ b/hachu.c @@ -2306,6 +2306,15 @@ printf("# in (mode = %d,%d): %s\n", root, abortFlag, command); if(!strcmp(command, "put")) { ReadSquare(inBuf+4, &lastPut); continue; } // ditto if(!strcmp(command, ".")) { inBuf[0] = 0; return; } // ignore for now if(!strcmp(command, "lift")) { inBuf[0] = 0; Highlight(inBuf+5); return; } // treat here + if(!root && !strcmp(command, "usermove")) { + abortFlag = !!strcmp(inBuf+9, ponderMoveText); + if(!abortFlag) { // ponder hit, continue as time-based search + SetSearchTimes(10*timeLeft + GetTickCount() - startTime); // add time we already have been pondering to total + if(lastRootIter > tlim1) abortFlag = 2; // abort instantly if we are in iteration we should not have started + inBuf[0] = 0; ponderMove = INVALID; + return; + } + } abortFlag = 1; return; }