Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A question about book.c of Crafty

Author: Stuart Cracraft

Date: 16:42:55 09/04/04

Go up one level in this thread


On September 04, 2004 at 18:52:05, Uri Blass wrote:

>I think that I understand what is going on and ReadPgn may return 2 and the
>descreption of it in Crafty's code was wrong.
>
>Here are the comments that were misleading
>
>*   this routine reads a move from a PGN file to build an opening book or for  *
>*   annotating.  It returns a 1 if a header is read, it returns a 0 if a move  *
>*   is read, and returns a -1 on end of file.  It counts lines and this        *
>*   counter can be accessed by calling this function with a non-zero second    *
>*   formal parameter.
>
>The question is still what readpgn does and if there is a code that is more easy
>to understand about reading pgn(I do not like to try to do the same
>deterministic task of reading data from pgn by myself and I hope to have some
>functions that can help).
>
>Uri

Consider looking at GNU's book reading code for PGN files at

    http://www.gnu.org/software/chess/chess.html

This suggestion has absolutely *NO* competitive intent.

It is purely shared.

Stuart



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.