Explanation
PGN means Portable Game Notation, a text format for recording games. A PGN game has two main sections. Descriptive tag information comes first. The movetext follows, recording how the game developed and ending with its result.
Moves are written in SAN, Standard Algebraic Notation. SAN uses forms such as e4 for a pawn advance, Nf3 for a knight moving to f3, and O-O for kingside castling, the special move involving the king and a rook. Movetext can include move numbers and . Illegal moves are not allowed as moves, although they may be discussed inside commentary.
It can also contain NAGs, Numeric Annotation Glyphs, which are normalized assessments written as a dollar sign followed by a number, and RAVs, Recursive Annotation Variations, which are alternative lines inside parentheses. Each RAV begins from the position before the move it replaces and may contain its own annotations or nested variations.
The final element is one of four markers: 1-0 for a White win, 0-1 for a Black win, 1/2-1/2 for a draw, or an asterisk when the game is in progress, abandoned, or otherwise unresolved. It must match the Result value in the corresponding .
Common confusions
Movetext versus a complete PGN game
Movetext is only the second section. The complete game also has a tag section before it.
View termThe result appearing twice
The Result tag belongs to the descriptive data, while the final marker belongs to movetext. They must contain the same value.
Sources
- 1.Standard: Portable Game Notation Specification and Implementation Guide, Steven J. Edwards / ChessGML
