From: Yann Dirson Date: Sat, 9 Nov 2013 22:43:42 +0000 (+0100) Subject: Provide "sd " as (primary) alias of "depth " for xboard conformance. X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=commitdiff_plain;h=cb401bf103d908c88d29446c44e6810505ed8563 Provide "sd " as (primary) alias of "depth " for xboard conformance. --- diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index ac058ff..2839fc9 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -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(); diff --git a/gnushogi/rawdsp.c b/gnushogi/rawdsp.c index e0a9857..6e621b6 100644 --- a/gnushogi/rawdsp.c +++ b/gnushogi/rawdsp.c @@ -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]);