if(!move[moveNr][0]) return; // no ponder move\r
LoadPos(moveNr+1);\r
searching = 1; lastDepth = 1;\r
+ DPRINT("# ponder on %s\n", move[moveNr]);\r
StartSearch(" ponder");\r
}\r
\r
// first start a new ponder search, if pondering is on and we have a move to ponder on\r
if(p = strstr(line+9, "ponder")) {\r
sscanf(p+7, "%s", move[moveNr]);\r
- if(computer != NONE && ponder) {\r
- DPRINT("# ponder on %s\n", move[moveNr]);\r
- StartPonder(moveNr);\r
- }\r
+ if(computer != NONE && ponder) StartPonder(moveNr);\r
p[-1] = '\n'; *p = 0; // strip off ponder move\r
} else move[moveNr][0] = 0;\r
Move4GUI(line+9);\r
sprintf(buf + strlen(buf), "%s%s%s", min++ ? " /// " : " ", strcmp(type, val) ? "" : "*", val);\r
}\r
strcat(q, "\"\n");\r
+\r
}\r
else buf[0] = 0; // ignore unrecognized option types\r
if(buf[0]) printf("%s", buf);\r
{\r
int i;\r
\r
- if((computer == stm || computer == ANALYZE && !searching && sm != 1) && !suspended) {\r
+ if(suspended || searching) return;\r
+\r
+ if(computer == stm || computer == ANALYZE && sm != 1) {\r
DPRINT("# start search\n");\r
LoadPos(moveNr); fflush(stdout); // load position\r
// and set engine thinking (note USI swaps colors!)\r
EPRINT((f, "\n")) searching = 2; // suppresses spurious commands during analysis starting new searches\r
} else searching = 3, StartSearch(""); // request suspending of input processing while thinking\r
} else if(ponderAlways && computer == NONE) move[moveNr][0] = 0, StartPonder(moveNr-1);\r
+ else if(BLACK+WHITE-stm == computer && ponder && moveNr) StartPonder(moveNr);\r
}\r
\r
void\r