X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=blobdiff_plain;f=UCI2WB.c;fp=UCI2WB.c;h=b9df43c4c1e53bfc99c1ed79af265c4f22f4f919;hp=d44de7441491dc485679f43204e7eecbe38cc6a8;hb=9e92f9f1e4e601912bd40334c9f89677b9b65f23;hpb=4aeefd3c3c03994a5b477935cf4d8e6c73062a14 diff --git a/UCI2WB.c b/UCI2WB.c index d44de74..b9df43c 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -469,8 +469,6 @@ GUI2Engine() while(1) { int i, difficult; - LaunchSearch(); // start a search if we need one - nomove: for(difficult=0; !difficult; ) { // read and handle commands that can (or must) be handled during thinking fflush(toE); fflush(stdout); if(!ReadLine(stdin, line)) printf("# EOF\n"), sprintf(line, "quit -1\n"); @@ -525,7 +523,7 @@ GUI2Engine() searching = 0; pause = 2; moveNr++; startTime = GetTickCount(); // clock starts running now EPRINT((f, "# ponderhit%s\n", draw)) fflush(toE); fflush(stdout); searching = 3; // request blocking input during thinking - goto nomove; + continue; } StopPonder(1); searching = 0; } @@ -544,8 +542,10 @@ GUI2Engine() } if(qStart == qEnd) qStart = qEnd = queue; p = line; while(qEnd < queue+10000 && (*qEnd++ = *p++) != '\n') {} - if(DoCommand()) goto nomove; + if(DoCommand()) continue; } + + LaunchSearch(); // start a search if we need one } }