\r
Change log:\r
\r
+15/4/2012 v1.7\r
+Take 30ms safety margin in translating st command to movetime\r
+\r
14/1/2011 v1.6\r
Replaced all polling by blocking synchronization (through pipes).\r
Implemented ping (using isready/readyok)\r
/************************* UCI2WB by H.G.Muller ****************************/\r
\r
-#define VERSION "1.6"\r
+#define VERSION "1.7"\r
\r
#include <stdio.h>\r
#include <stdlib.h>\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
- else if(!strcmp(command, "st")) sscanf(line, "st %d", &sTime), sTime *= 1000, inc = 0;\r
+ else if(!strcmp(command, "st")) sscanf(line, "st %d", &sTime), sTime = 1000*sTime - 30, inc = 0;\r
else if(!strcmp(command, "quit")) fprintf(toE, "quit\n"), fflush(toE), exit(0);\r
}\r
}\r