This directory contains the source for version 16.2 of the pgn-extract program which I wrote and maintain. Its purpose is for manipulating chess games written in the Portable Game Notation (PGN).
The -M flag for matching only games that end in mate.
A bug fix: some games ending in mate did not have the mate symbol appended to the final move.
These are the sources for a program to extract selected games from a PGN format data file. There are several ways to specify the criteria on which to extract: textual move sequences, the position reached after a sequence of moves, information in the tag fields, and material balance in the ending. The program includes a semantic analyser which will report errors in game scores and it is also able to detect duplicate games found in its input files.
The range of input move formats accepted is fairly wide and includes recognition of lower-case piece letters for English and upper-case piece letters for Dutch and German. The output is normally in English Standard Algebraic Notation (SAN), but this can be varied.
Extracted games may be written out either including or excluding comments, NAGs, and variations. Games may be given ECO classifications derived from the accompanying file eco.pgn, or a customised version provided by the user.
For a full description of pgn-extract's functionality, see either this HTML-formatted description or this plaintext description.
For most users, it will be sufficient to take a copy of the full source and documentation as either pgn-extract-16-2.tgz or pgn-extract-16-2.zip.
Thanks to Jim Ablett for providing a win32 version of the latest version pgn-extract.
Name | Description | Bytes | Date |
COPYING | GNU General Public License. | 12488 | Dec 05 1997 |
README | Text description of what the program does, and how to use it. | 57635 | Apr 24 2007 |
pgn-extract-16-2.tgz | GZipped tar file
of the complete source of version 16.2 of the program. Includes README, Makefile for compilation and eco.pgn file for ECO classification. |
161920 | Apr 24 2007 |
pgn-extract-16-2.zip | Zipped file of the complete source of version 16.2 of the program. Includes README, Makefile for compilation and eco.pgn file for ECO classification. |
190309 | Apr 24 2007 |
eco.zip | Zipped version of eco.pgn. | 32081 | Sep 30 1999 |
eco.pgn | File of openings with PGN classification. This file is already included in the source archives. |
254722 | Dec 05 1997 |
pgn-extract-15-0.exe | 32-bit DOS binary of version 15.0 of the program. | 365222 | Sep 14 2001 |
extract-13-5.exe | 16-bit DOS binary of version 13.5 of the program. | 88516 | Dec 05 1997 |