} else fprintf(toE, "setoption name %s\n", line+7), printf("# setoption name %s\n", line+7);\r
}\r
else if(!strcmp(command, "protover")) {\r
- printf("feature variants=\"%s\" setboard=1 usermove=1 debug=1 reuse=0 done=0\n", sc=='s' ? "shogi,5x5+5_shogi" : VARIANTS);\r
+ printf("feature variants=\"%s\" setboard=1 usermove=1 debug=1 ping=1 reuse=0 done=0\n", sc=='s' ? "shogi,5x5+5_shogi" : VARIANTS);\r
fprintf(toE, "u%ci\n", sc); // this prompts UCI engine for options\r
}\r
else if(!strcmp(command, "setboard")) {\r
else if(!strcmp(command, "nopost")) post = 0;\r
else if(!strcmp(command, "easy")) ponder = 0;\r
else if(!strcmp(command, "hard")) ponder = 1;\r
+ else if(!strcmp(command, "ping")) pause = 1, fprintf(toE, "isready\n"), fflush(toE), Sync(PAUSE), printf("pong %s", line+5);\r
else if(!strcmp(command, "memory")) sscanf(line, "memory %d", &memory);\r
else if(!strcmp(command, "cores")) sscanf(line, "cores %d", &cores);\r
else if(!strcmp(command, "sd")) sscanf(line, "sd %d", &depth);\r