Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: What do you put in the opening book?

Author: Rick Bischoff

Date: 05:13:52 10/03/04

Go up one level in this thread


>
>I already have a function to decide if a move not in full notation (like e4) is
>a legal move and to make it in case that it is a legal move but not a function
>to analyze file of pgn based on that function.

Uri,

You should download OliThink's source code.  He has a very simple file to parse
an entire PGN-- and, I thought this was rather novel, he stores each position
into the hash table.

I adapted his parse PGN code into my program, but instead of storing it into the
hashtable, I use the C++ std::map class to get positions out, along with the
game stats (e.g., how many wins, losses and draws).



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.