pgnlib: a c++ library for PGN chess games

Tutorial - 2


2. The pgnlib classes

The idea behind pgnlib is very simple: to provide a class for every single element of a PGN game of chess. So we have classes for games
moves, comments and so on.

A list of all the classes making up the latest pgnlib releas follows.

As you can see each class maps a single pgn element, except for the class Position. There is not a specific class for variations as we consider
them simply as movelists branching out from the game trunk.

[1. An introduction to PGN ] [Home] [3. Hello World!]

SourceForge.net Logo Valid HTML 4.01!