Provide "sd <n>" as (primary) alias of "depth <n>" for xboard conformance.
authorYann Dirson <ydirson@free.fr>
Sat, 9 Nov 2013 22:43:42 +0000 (23:43 +0100)
committerYann Dirson <ydirson@free.fr>
Sat, 9 Nov 2013 22:43:42 +0000 (23:43 +0100)
gnushogi/commondsp.c
gnushogi/rawdsp.c

index ac058ff..2839fc9 100644 (file)
@@ -1862,6 +1862,10 @@ InputCommand(char *command)
         {
             dsp->ChangeSearchDepth(sx + strlen("depth"));
         }
+        else if (strcmp(s, "sd") == 0)
+        {
+            dsp->ChangeSearchDepth(sx + strlen("sd"));
+        }
         else if (strcmp(s, "hashdepth") == 0)
         {
             dsp->ChangeHashDepth();
index e0a9857..6e621b6 100644 (file)
@@ -324,7 +324,7 @@ Raw_help(void)
     printf("edit      edit board              force     toggle manual move mode\n");
     printf("switch    sides with computer     both      computer match\n");
     printf("black     computer plays black    white     computer plays white\n");
-    printf("depth     set search depth        clock     set time control\n");
+    printf("sd        set search depth        clock     set time control\n");
     printf("post      principle variation     hint      suggest a move\n");
     printf("save      game to file            get       game from file\n");
     printf("xsave     pos. to xshogi file     xget      pos. from xshogi file\n");
@@ -344,7 +344,7 @@ Raw_help(void)
     printf("stars     turn %3s                moves                  \n",
            flag.stars ? "OFF" : "ON ");
     printf("test                              p                      \n");
-    printf("debug                                                    \n");
+    printf("debug                             depth     alias for 'sd'\n");
     printf("----------------------------------------------------------------\n");
     printf("Computer: %-12s Opponent:            %s\n",
            ColorStr[computer], ColorStr[opponent]);