By forcing the GUI to prefix the move with "usermove ", it will be
easier to recognize whether a command is a move (e.g. for determining
ponder hits in future ponder implementations). Moves are still recognized
without such prefix as well, for the benefit of other modes.
"shogi"
#endif
);
- printf("debug=1 setboard=1 sigint=0 memory=1 done=1\n");
+ printf("debug=1 setboard=1 sigint=0 memory=1 usermove=1 done=1\n");
}
else if (strcmp(s, ".") == 0)
{ // periodic update request of analysis info: send stat01 info
}
else
{
+ if (strcmp(s, "usermove") == 0)
+ sscanf(sx + 9, "%s", s);
+
if (flag.mate)
{
ok = true;