Portable Draughts Notation (.PDN) is the standard computer-processable format for recording draughts games. This format is derived from Portable Game Notation, which is the standard chess format.
PDN files are text files which must contain Tag Pairs and Movetext for each game.
Tag pairs begin with "[", the name of the tag, the tag value enclosed in double-quotes, and a closing "]". There must be a newline after each tag. Tag names are case-sensitive.
PDN data for archival storage is required to provide 7 tags.
A position can be stored by the FEN
tag: [SetUp "1"] [FEN "[Turn]:[Color 1][K][Square number][,]...]:[Color 2][K][Square number][,]...]"]
B
for Black, W
for WhiteB
for Black, W
, and the sequence is unimportant.
Examples:
[FEN "B:W18,24,27,28,K10,K15:B12,16,20,K22,K25,K29"]
[FEN "B:W18,19,21,23,24,26,29,30,31,32:B1,2,3,4,6,7,9,10,11,12"]
Movetext contains the actual moves for the game. Moves begin with the source square number, then a "-" or "x", finally destination square number. Jumps must be specified by each square that would be jumped ("11x18x25"), or two squares only ("11x25").
The end of the game must contain the 4 standard result codes: "1-0", "1/2-1/2" "0-1", and "*". The codes must be the same as the Result
tag pair.
An annotator who wishes to suggest alternative moves to those actually played in the game may insert variations enclosed in parentheses.
Comments may be added by either a ";" (a comment that continues to the end of the line) or a ""). Comments do not nest.
PDN can be used in a wide variety of draughts variants synthesized with different board sizes. For example, PDN can represent 88 and 1010 boards. It can represent unmatched board sizes by specifying unequivalent values in the Board-width
and the Board-height
headers. It can include the optional GameType
tag to differentiate between different variants.
B
for Black, W
for WhiteA
- alpha/numeric like chessN
- numeric like draughtsS
- SAN - short-form chess notation. Then follows a number 0-4 telling where square A1 or 1 is for the side who starts the game (White or Black), 0 = Bottom left, 1=Bottom right, 2=Top left, 3=Top right.0
- pieces on dark squares1
- pieces on light squares