From: H.G. Muller Date: Tue, 21 Jan 2014 19:56:29 +0000 (+0100) Subject: XBoard: use xboard v2-compatible move output ("move" command, no milliseconds) X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=commitdiff_plain;h=34d6d391a093b3e50d668c59e0a530f8befb19ee XBoard: use xboard v2-compatible move output ("move" command, no milliseconds) YD: split original patch into a series YD: simplified slightly --- diff --git a/gnushogi/rawdsp.c b/gnushogi/rawdsp.c index 5f04dca..a856806 100644 --- a/gnushogi/rawdsp.c +++ b/gnushogi/rawdsp.c @@ -521,12 +521,15 @@ Raw_OutputMove(void) if (mvstr[0][0] == '\0') goto nomove; - if (XSHOGI) + mycnt1++; + if (XSHOGI && xboard) /* xboard: print move in XBoard format, with 'move' prefix */ + printf("move %s\n", mvstr[0]); + else if (XSHOGI) /* add remaining time in milliseconds to xshogi */ - printf("%d. ... %s %ld\n", ++mycnt1, mvstr[0], + printf("%d. ... %s %ld\n", mycnt1, mvstr[0], (TimeControl.clock[player] - et) * 10); else - printf("%d. ... %s\n", ++mycnt1, mvstr[0]); + printf("%d. ... %s\n", mycnt1, mvstr[0]); nomove: if ((root->flags & draw) || (root->score == -(SCORE_LIMIT + 999))