bug-gnu-chess
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

move notifications not conforming to Winboard 2 protocol


From: Alex Ignácio da Silva
Subject: move notifications not conforming to Winboard 2 protocol
Date: Thu, 17 Sep 2009 14:21:18 -0300
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]