char line[1024], command[256]; static char egts[999];\r
\r
while(1) {\r
- int i=0; char *p, dummy;\r
+ int i=0; char *p, *q, dummy;\r
\r
fflush(stdout); fflush(toE);\r
if(fromF && !ReadLine(fromF, line, 1022)) fromF = 0, printf("# end fake\n");\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
- printf("move %s\n", line+9); // send move to GUI\r
+ if((q = strchr(line+9, ','))) { // multi-leg move\r
+ *q++ = 0; Move4GUI(line+9); // split\r
+ printf("move %s,\n", line+9); // send first leg\r
+ } else q = line + 9;\r
+ Move4GUI(q);\r
+ printf("move %s\n", q); // send move to GUI\r
if(p) Move4GUI(p+7), printf("Hint: %s\n", p+7);\r
if(lastScore == 100001 && iniPos[0] != 'f') { printf("%s {mate}\n", stm == BLACK ? "1-0" : "0-1"); computer = NONE; }\r
fflush(stdout); return;\r