🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #1314

Re: Using GNU Chess to generate a PGN book

#1314
From: Alex Holland
Date: Sun, 16 Nov 2003 12:25
23 lines
2240 bytes
Simon Waters wrote:

> Script it, or use one of the many interfaces that allow Winboard engines
> to pay each other (Xboard?).
> 
> Depending on how much logging you want you might check the "name"
> command and ensure it is passed to one or both programs at the start of
> each game (Xboard can do this as it can pass a command on start-up).

I think I've worked out the best way to do it - I'm using the Expect 
scripting language to play games to completion simply by inputting "go" 
at each prompt until either a win or draw is declared, then using 
pgnsave. This way I've got no X windows overheads, so I can just leave 
it generating data for a few days on the departmental servers. Ta to 
David Richerby on rec.games.chess.computer for that.

Does GNU Chess always ultimately either declare a win or suggest a 
"draw" condition? A few sample games have gone into 120+ moves, so I 
think I might need some upper limit.

Thanks,

Alex Holland
Technical Details
Message-ID: <3fb76cc9$0$5424$cc9e4d1f@news.dial.pipex.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!lnewspost00.lnd.ops.eu.uu.net!emea.uu.net!not-for-mail
References: <3fae9f0c$0$465$cc9e4d1f@news.dial.pipex.com> <bp617l$3rq$1$8300dec7@news.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,54be49931df8aa33
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 2003-11-16 04:25:47 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!lnewspost00.lnd.ops.eu.uu.net!emea.uu.net!not-for-mail
Date: Sun, 16 Nov 2003 12:25:16 +0000
From: Alex Holland <ah160@york.ac.uk>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.5) Gecko/20031102
X-Accept-Language: en-gb, en-us, en
MIME-Version: 1.0
Newsgroups: gnu.chess
Subject: Re: Using GNU Chess to generate a PGN book
References: <3fae9f0c$0$465$cc9e4d1f@news.dial.pipex.com> <bp617l$3rq$1$8300dec7@news.demon.co.uk>
In-Reply-To: <bp617l$3rq$1$8300dec7@news.demon.co.uk>
X-Enigmail-Version: 0.76.7.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 24
Message-ID: <3fb76cc9$0$5424$cc9e4d1f@news.dial.pipex.com>
NNTP-Posting-Date: 16 Nov 2003 12:25:45 GMT
NNTP-Posting-Host: 81-86-246-53.dsl.pipex.com
X-Trace: 1068985545 news.dial.pipex.com 5424 81.86.246.53:32809
X-Complaints-To: abuse@uk.uu.net