X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=hachu.c;h=609f05e1480805aa73226e3087dd28016bae0b0e;hb=4ff6161c41af266165541bbc8b370c578b25342e;hp=79c5b7559bc5e60046c5065d29deb749fb897d10;hpb=3be71708763df67da795280f51e2dc75a7b4d954;p=hachu.git 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; }