X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fcommondsp.c;h=48a8ef4c1719d2cb7336d598c68bb8a9fa3f662c;hb=refs%2Fheads%2Fmini;hp=9fb249294a1f58c14e390e206db88f960dd65a66;hpb=fefe18367278ba47e0c4af1ac91f1f0d0c98870a;p=gnushogi.git diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 9fb2492..48a8ef4 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -285,6 +285,7 @@ VerifyMove(char *s, VerifyMove_mode iop, unsigned short *mv) MoveList(opponent, 2, -1, true); generate_move_flags = false; pnt = TrPnt[2]; + if(s[4] == '=') s[4] = '\0'; /* deferral is implied */ while (pnt < TrPnt[3]) { @@ -1778,6 +1779,10 @@ InputCommand(char *command, int root) } else if (strcmp(s, "protover") == 0) { + printf("feature option=\"tsume -check 0\"\n"); + printf("feature option=\"contempt -spin %d -1000 1000\"\n", contempt); + printf("feature option=\"Hash-file search depth -spin %d 0 100\"\n", HashDepth); + printf("feature option=\"Hash-file move number -spin %d 0 100\"\n", HashMoveLimit); printf("feature myname=\"GNU %s %s\" ", #ifdef MINISHOGI "MiniShogi", @@ -2051,6 +2056,14 @@ InputCommand(char *command, int root) { flag.easy = !flag.easy; } + else if (strcmp(s, "option") == 0) + { + sscanf(sx, "option tsume=%hd", &flag.tsume) || + sscanf(sx, "option hash=%hd", &flag.hash) || + sscanf(sx, "option Hash-file search depth=%hd", &HashDepth) || + sscanf(sx, "option Hash-file move number=%hd", &HashMoveLimit) || + sscanf(sx, "option contempt=%hd", &contempt); + } else if (strcmp(s, "tsume") == 0) { flag.tsume = !flag.tsume;