Introduction
A .pgn file records chess games in Portable Game Notation, a plain text
standard meant to be read by people and parsed easily by programs. It was drawn up in
1994 by readers of the newsgroup rec.games.chess, coordinated by Steven J. Edwards.
It is used to exchange games between chess programs. One file can hold any number of
games.
Structure
Each game has two parts. The tag pair section is a set of lines such as
[Event "Casual Game"]; seven tags (Event, Site, Date, Round, White, Black
and Result) form the standard roster. The movetext follows: moves in Standard Algebraic
Notation with move numbers, optional comments, annotations and variations, ended by
1-0, 0-1, 1/2-1/2 or *.
Not described
This page is a first outline. The full syntax of the file is not yet described here.
Known, not yet covered
- Reference: the full grammar, all the standard tags and the annotation glyphs, which the PGN specification defines.
- Viewer: the site has no viewer for this format.
Links
Software
- ChessBase – chess database program that reads and writes PGN (Windows)
Reference
- PGN specification and implementation guide – the 1994 standard, as published by Andreas Saremba
- ChessBase help: PGN format – how ChessBase reads and writes PGN files