Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Implementing PGN support

Author: Will Singleton

Date: 18:53:20 07/04/02

Go up one level in this thread


On July 04, 2002 at 19:09:09, Russell Reagan wrote:

>I'd like to implement PGN support for my program, and I pretty much know how it
>works. As far as I know there are some tags that describe various things at the
>beginning, then the chess moves. Is it really necessary to read that whole
>"official PGN specification" stuff? I guess it's not THAT long, but it sure is
>boring :)
>
>Russell

It depends on what you want to do.  If you just want your prog to read most pgn,
then it's not necessary to read the spec, imo.  Just look at various pgn files,
and make your reader robust.

A couple things to watch out for: some pgn files have a space after each move
number, some don't.  Easy to handle, though some programs I've seen don't like
spaces.  Handle braces and parens.  That's about it.

Will



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.