From cb401bf103d908c88d29446c44e6810505ed8563 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sat, 9 Nov 2013 23:43:42 +0100 Subject: [PATCH] Provide "sd " as (primary) alias of "depth " for xboard conformance. --- gnushogi/commondsp.c | 4 ++++ gnushogi/rawdsp.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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]); -- 1.7.0.4