Computer Chess Club Archives


Search

Terms

Messages

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

Author: Uri Blass

Date: 15:52:05 09/04/04

Go up one level in this thread


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



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.