X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=blobdiff_plain;f=UCI2WB.c;h=459c7481eafc78e728f18e4771b67f53553f0a33;hp=c3129f5ef6a2bdacf9b1e6f7e90abf9f1a8ef8d4;hb=1f508cfef32d91d668bdac6a0d9ad303012ae46d;hpb=ba36924e290edaa5b9651013ed9111541afd33b0 diff --git a/UCI2WB.c b/UCI2WB.c index c3129f5..459c748 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -251,6 +251,7 @@ Engine2GUI() // move was a move to be played if(p = strstr(line+8, " draw")) *p = 0, printf("offer draw\n"); // UCCI if(strstr(line+9, "resign")) { printf("resign\n"); computer = NONE; } + if(strstr(line+9, "win")) { printf("%s {claim}\n", stm== WHITE ? "1-0" :"0-1"); computer = NONE; } // USI if(strstr(line+9, "(none)") || strstr(line+9, "null") || strstr(line+9, "0000")) { printf("%s\n", lastScore < -99999 ? "resign" : "1/2-1/2 {stalemate}"); computer = NONE; } sscanf(line, "bestmove %s", move[moveNr++]);