🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #384

gnuchess/xboard protocol

#384
From: Ethan A Burns
Date: Thu, 18 May 2006 17:23
44 lines
3305 bytes
Hello,
	I have questions about gnuchess (5.07) and the xboard protocol.
I found a document on the xboard protocol at the following url:

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?


Also, (on linux) I have a program that opens up a couple pipes (for input and
output) and dup2's them to a ``gnuchess --xboard'' process's stdin and stdout.
Upon reading from the output end of the gnuchess's stdout pipe (reading the 
stdout from gnuchess) my program blocks.
If just running ``gnuchess --xboard'' from the console, I notice that it starts
up by outputting:

Chess
Adjusting HashSize to 1024 slots

I would suspect that my initial read would see this output...
I also find, however, that if I send a move (b2b3 for example), that a 
subsequent read will get the initial string:

Chess
Adjusting HashSize to 1024 slots

followed by the appropriate output for my move.

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.

When running gnuchess with out the --xboard option, my pipe is written to 
immediatly as I would suspect, without waiting for a move to be sent to 
gnuchess.

Is this the desired behavior, or is there a chance that I am setting up my 
pipes/dup2s wrong?

	Thanks,
		--Ethan Burns
Technical Details
Message-ID: <mailman.2029.1147973011.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-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d71d,725a2245bee255e4,start
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: gnuchess/xboard protocol
Date: Thu, 18 May 2006 13:23:15 -0400
Lines: 47
Approved: info-gnu-chess@gnu.org
Message-ID: <mailman.2029.1147973011.9609.info-gnu-chess@gnu.org>
NNTP-Posting-Host: lists.gnu.org
X-Trace: news.Stanford.EDU 1147973012 2097 199.232.76.165 (18 May 2006 17:23:32 GMT)
X-Complaints-To: news@news.stanford.edu
To: info-gnu-chess@gnu.org
Envelope-to: info-gnu-chess@gnu.org
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2
 (ossipee.unh.edu [132.177.137.39]);
 Thu, 18 May 2006 13:23:22 -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=-3.783, required 5,
 autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.62, BAYES_00 -2.60)
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>