}\r
continue;\r
}\r
- if(collect && (pv = strstr(line+5, "currmove "))) {\r
- if(p = strstr(line+5, "currmovenumber ")) {\r
- n = atoi(p+15);\r
- if(collect == 1 && n != 1) continue; // wait for move 1\r
- if(collect + (n == 1) > 2) { // done collecting\r
- if(inex && collect == 2) printf("%d 0 0 0 OK to exclude\n", lastDepth);\r
- collect = 3; continue;\r
- }\r
- collect = 2; on[nr=n] = 1; sscanf(pv+9, "%s", moveMap[n]); continue; // store move\r
- }\r
- }\r
if(!post) continue;\r
if(sscanf(line+5, "string %c", &dummy) == 1) printf("%d 0 0 0 %s", lastDepth, line+12); else {\r
if(p = strstr(line+4, " depth ")) sscanf(p+7, "%d", &d), statDepth = d;\r
if(p = strstr(line+4, " score ")) sscanf(p+7, "%d", &s), statScore = s;\r
if(p = strstr(line+4, " nodes ")) sscanf(p+7, "%d", &n), statNodes = n;\r
if(p = strstr(line+4, " time ")) sscanf(p+6, "%d", &t), t /= 10, statTime = t;\r
- if(p = strstr(line+4, " currmove ")) sscanf(p+10,"%s", currMove);\r
- if(p = strstr(line+4, " currmovenumber ")) sscanf(p+16,"%d", &currNr);\r
if(pv = strstr(line+4, " pv ")) { // convert PV info to WB thinking output\r
if(d > maxDepth) maxDepth = d, mpvSP = 0; else if(d < maxDepth) continue; // ignore depth regressions\r
if(p = strstr(line+4, " upperbound ")) strcat(p, "?\n"); else\r
printf("%3d %6d %6d %10d %s", lastDepth=d, lastScore=s, t, n, Convert(pv+4));\r
} else if(s == -100000) lastScore = s; // when checkmated score is valid even without PV (which might not come)\r
}\r
+ if(collect && (pv = strstr(line+4, " currmove "))) {\r
+ sscanf(pv+10,"%s", currMove);\r
+ if(p = strstr(line+4, " currmovenumber ")) {\r
+ n = currNr = atoi(p+16);\r
+ if(collect == 1 && n != 1) continue; // wait for move 1\r
+ if(collect + (n == 1) > 2) { // done collecting\r
+ if(inex && collect == 2) printf("%d 0 0 0 OK to exclude\n", lastDepth);\r
+ collect = 3; continue;\r
+ }\r
+ collect = 2; on[nr=n] = 1; strcpy(moveMap[n], currMove); continue; // store move\r
+ }\r
+ }\r
}\r
else if(!strcmp(command, "option")) { // USI option: extract data fields\r
char name[80], type[80], buf[1024], val[256], *q;\r
else if(!strcmp(command, "post")) post = 1;\r
else if(!strcmp(command, "nopost"))post = 0;\r
else if(!strcmp(command, ".")) {\r
- printf("stat01: %d %d %d %d 100 %s\n", statTime, statNodes, statDepth, 100-currNr, currMove);\r
+ printf("stat01: %d %d %d %d %d %s\n", statTime, statNodes, statDepth, nr-currNr, nr, currMove);\r
}\r
else if(!strcmp(command, "pause")) {\r
if(computer == stm) myTime -= GetTickCount() - startTime;\r