Article View: gnu.chess
Article #385Re: gnuchess/xboard protocol
From: Ethan A Burns
Date: Thu, 18 May 2006 21:11
Date: Thu, 18 May 2006 21:11
73 lines
4314 bytes
4314 bytes
>Ethan A Burns wrote:
>>
>> http://www.tim-mann.org/xboard/engine-intf.html
>>
>> Looking at this page and comparing with output from ``gnuchess --xboard''
>> doesn't match up.
>>
>> Does anyone have input for this? Is this document out dated now?
>
>The document is current.
>
>Deviations are bugs, or in some cases just missing features.
According to xboard protocol spec, section 9 Commands from the engine to xboard:
move MOVE
Your engine is making the move MOVE. Do not echo moves from xboard with
this command; send only new moves made by the engine.
However, when I enter a move into gnuchess --xboard the reply doesn't look like
that at all:
eaburns@bender ~ $ gnuchess --xboard
Chess
Adjusting HashSize to 1024 slots
b2b3
1. b2b3
1. ... d7d5
My move is: d7d5
the ``My move is: <MOVE>'' string is no where mentioned in the xboard protocol.
Is this then a bug in gnuchess?
>> Chess
>> Adjusting HashSize to 1024 slots
>> ...
>
>> Testing around a bit, sending and reading (reading in a seperate thread), I
>> found that gnuchess only seems to send output to my pipe AFTER receiving a
>> move from my program.
>
>It is easier to look at the source for this, as you'll see where output
>is done to the stdout, in xboard mode, the pipe is explicitly flushed
>(the code should have been refactored to stuff this into a subroutine).
>
>It isn't flushed for the hash output, so I think this is a clear bug
>(Indeed I'll have to check if it should be output at all).
This output is not mentioned in the xboard protocol, so I believe it would be
a bug.
>
>I think the reason it doesn't cause any issues for most of the programs
>that work with it because of how they do the communication. Most do a
>"ping", and check for "pong", and so eat all this dross in the output
>that shouldn't be there at start-up.
Could you explain this a little bit more please? My understanding would be:
My program sends a ping, and reads in input untill I see a pong, just ignoring
everything inbetween? Is this correct?
>
>I will tidy this up for the next release, but suggest the "ping"/"pong"
>check is probably worth doing in general and as a workaround if you have
>to cope with earlier GNU Chess versions.
>
>Can I ask what your program does?
I am working on a 3D chess UI using opengl/glut.
Thanks for your responce,
--Ethan
Technical Details
Message-ID:
<mailman.2041.1147986729.9609.info-gnu-chess@gnu.org>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10d71d,725a2245bee255e4 X-Google-Attributes: gid10d71d,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail From: Ethan A Burns <eaburns@euler.unh.edu> Newsgroups: gnu.chess Subject: Re: gnuchess/xboard protocol Date: Thu, 18 May 2006 17:11:55 -0400 Lines: 75 Approved: info-gnu-chess@gnu.org Message-ID: <mailman.2041.1147986729.9609.info-gnu-chess@gnu.org> NNTP-Posting-Host: lists.gnu.org X-Trace: news.Stanford.EDU 1147986731 21956 199.232.76.165 (18 May 2006 21:12:11 GMT) X-Complaints-To: news@news.stanford.edu Cc: info-gnu-chess@gnu.org To: Simon Waters <simon@technocool.net> Envelope-to: info-gnu-chess@gnu.org In-Reply-To: Your message of "Thu, 18 May 2006 21:19:32 BST." <446CD6D4.6090704@technocool.net> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (ossipee.unh.edu [132.177.137.39]); Thu, 18 May 2006 17:12:01 -0400 (EDT) X-cisunix-MailScanner-Information: http://pubpages.unh.edu/notes/mailfiltering.html X-cisunix-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.456, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL -0.66) X-MailScanner-From: eaburns@euler.unh.edu X-BeenThere: info-gnu-chess@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Announcements and discussions about GNU Chess <info-gnu-chess.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/info-gnu-chess>, <mailto:info-gnu-chess-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/info-gnu-chess> List-Post: <mailto:info-gnu-chess@gnu.org> List-Help: <mailto:info-gnu-chess-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/info-gnu-chess>, <mailto:info-gnu-chess-request@gnu.org?subject=subscribe>