move notifications not conforming to Winboard 2 protocol
Alex Ignácio da Silva <[email protected]> Thu, 17 Sep 2009 14:21:18 -0300
| Newsgroups | gmane.comp.gnu.chess.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
GNU Chess is notifying its moves as:
My move is: <MOVE>
whereas according to the Winboard 2 protocol specification (see
http://www.tim-mann.org/xboard/engine-intf.html#9) it should be:
move <MOVE>
The following patch to iterate.c corrects the problem:
--- iterate.original.c 2003-06-30 08:28:38.000000000 -0300
+++ iterate.c 2009-09-17 13:18:31.000000000 -0300
@@ -289,11 +289,11 @@
if (flags & XBOARD)
{
printf ("%d. ... %s\n", GameCnt/2 + 1, AlgbrMove(RootPV));
- printf ("My move is: %s\n", AlgbrMove(RootPV));
+ printf ("move %s\n", AlgbrMove(RootPV));
fflush(stdout);
if (ofp != stdout) {
fprintf (ofp,"%d. ... %s\n", GameCnt/2 + 1, AlgbrMove(RootPV));
- fprintf (ofp,"My move is: %s\n", AlgbrMove(RootPV));
+ fprintf (ofp,"move %s\n", AlgbrMove(RootPV));
fflush(ofp);
}
}
Cheers,
Alex