🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #2705

Re: GNU chess database program

#2705
From: Jeffrey W. Gossett
Date: Mon, 11 Oct 1999 00:00
45 lines
2303 bytes
I have a program that does the following.

You use an editor to create a pgn file "list" with an opening line.

Then you type in a command

	parse a|b|c|d|e numPlys

a|b|c|d|e is the eco book you want to search.  (the program expects
you to have the gzipped databases.  a.pgn.gz b.pgn.gz c.pgn.gz etc.

numPlys is the depth of the tree you want to examine after the
opening lines in "list"

The program uses zcat and a program I wrote to read the book. It
finds all of the games that transpose
into the position at the end of the "list" sequence.  It then collects
all of the games that were played from that position into a seperate
pgn file called "out.pgn".  It writes a file "out.line"
that shows all of the sequences of length numPlys that were found in
these games.  For each sequence it gives the count of white wins,
black wins, and draws.  Also for each sequence it lists the game 
numbers of each of the white wins/black wins/draws.  The user can
then open "out.pgn" with xboard, and select any of the game numbers
that are listed in "out.line".  Thus out.line is a slightly 
intellegent index into "out.pgn" that is categorized by sequence 
and result.

Would this be of interest?

Stuart Cracraft wrote:
> 
> On Mon, 27 Sep 1999 09:25:11 -0400, "Patrick Walsh"
> <pwalsh@banta-im.com> wrote:
> 
> >Is there a GNU chess database program??
> >
> >Thanks
> >Patrick
> 
> None other than the built-in-book and game files that come with GNU
> Chess.
> 
> We hope you'll write a standalone database program to rival the
> commercial ones and give it away FREE as GNUware.
Technical Details
Message-ID: <3801EA81.CF4F0C34@cypress.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7snr7m$jih$1@fir.prod.itd.earthlink.net> <37ffe146.94003190@news.earthlink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,937d476b2b6148d7
X-Google-Attributes: gid10d71d,public
From: "Jeffrey W. Gossett" <jwg@cypress.com>
Subject: Re: GNU chess database program
Date: 1999/10/11
Message-ID: <3801EA81.CF4F0C34@cypress.com>
X-Deja-AN: 535382061
Sender: info-gnu-chess-request@mail.gnu.org
Content-Transfer-Encoding: 7bit
References: <7snr7m$jih$1@fir.prod.itd.earthlink.net> <37ffe146.94003190@news.earthlink.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
x-uunet-gateway: chi6sosrv11.alter.net from info-gnu-chess to gnu.chess; Mon, 11 Oct 1999 13:48:50 GMT
Mime-Version: 1.0
Newsgroups: gnu.chess