Portable Draughts Notation

Last updated

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.

Contents

PDN files are text files which must contain Tag Pairs and Movetext for each game.

Tag Pairs

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.

Event
the name of the tournament or match event
Site
the location of the event. This is in "City, Region COUNTRY" format, where COUNTRY is the 3-letter International Olympic Committee code for the country. An example is "New York City, NY USA".
Date
the starting date of the game, in YYYY.MM.DD form. "??" are used for unknown values
Round
the playing round ordinal of the game
White
the player of the White pieces, in "last name, first name" format
Black
the player of the Black pieces, same format as White
Result
the result of the game. This can only have four possible values: "1-0" (White won), "0-1" (Black won), "1/2-1/2" (Draw), or "*" (other, e.g., the game is ongoing)
FEN
the initial position of the checkers board. This is used to record partial games (starting at some initial position). It is also necessary for some draughts variants where the initial position is not always the same as traditional checkers. If a FEN tag is used, a separate tag pair "SetUp" is required and have its value set to "1".

A position can be stored by the FEN tag:

[SetUp "1"] [FEN "[Turn]:[Color 1][K][Square number][,]...]:[Color 2][K][Square number][,]...]"]
Turn
the side to move, B for Black, W for White
Color 1 and Color 2
the color for the Square numbers that follow B for Black, W, and the sequence is unimportant.
K
optional before square number, indicates the piece on that square is a king, otherwise it is a man.
Square number
indicates the square number occupied by a piece. The square number must be at least a "1". On an 8×8 board, it has a range from 1-32. These are comma separated, 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

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 "{" (which continues until a matching "}"). Comments do not nest.

Variants

PDN can be used in a wide variety of draughts variants synthesized with different board sizes. For example, PDN can represent 8 × 8 and 10 × 10 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.

[GameType "Type-number [,Start color (W/B),Board width, Board height, Notation [,Invert-flag]]"]
Type-number
this is one of the following type-numbers:
Start-color
B for Black, W for White
Board-width
board width
Board-height
board height
Notation
  • A - alpha/numeric like chess
  • N - numeric like draughts
  • S - 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.
Invert-flag
  • 0 - pieces on dark squares
  • 1 - pieces on light squares

Example

<nowiki/>  [Event "itsyourturn.com USA vs. World 8/04"][Site ""][Date "2004.08.23"][Round "1"][Black "Lindus Edwards"][White "Anthony Perez"][Result "1/2-1/2"]    1. 11-15 23-18 2. 8-11 26-23 {Crescent Cross} 3. 10-14 30-26 4. 6-10 24-19 5.  15-24 27-20* {28-19 loses PP} 6. 4-8 {the popular book line is 12-16 28-24 4-8  22-17* 8-12 32-28* = same} 32-27 {Perez' cook; 28-24 apparently goes to the  previous note} 7. 12-16 {seems to be the only move with any strength} 27-24 8.  8-12 22-17 {returning to the book line mentioned earlier} 9. 10-15 17-10 10.  7-14 26-22* 1/2-1/2 {a very popular position} 1/2-1/2    [Event "The Royal Tour"][Site ""][Date "??"][Round "1"][Black "a"][White "b"][Result "1-0"][Setup "1"][FEN "W:W27,19,18,11,7,6,5:B28,26,25,20,17,10,9,4,3,2."]    {27-24 Beginning a spectacular shot in which White pitches (almost) all his men  } 1. 19-15 10x19 2. 5-1 3x10 3. 11-8 4x11 4. 27-24 20x27 5. 18-14 9x18 6. 1-5  2x9 {2-9 and now the coup de grace that inspired the name of this problem...}  7. 5x32 {5-32 (Several different jumping sequences are possible, for example 5  x 14 x 7 x 16 x 23 x 14 x 21 x 30 x 23 x 32) White Wins. As an interesting side  note, this nine-piece jump is the theoretical maximum number of pieces it is  possible to jump in a single turn in checkers (try setting up a 10-piece jump -  the board lacks sufficient space!)} 1-0    [Event "WK 2003"][Site "Zwartewaterland, Netherlands"][Round "1"][Date "2003.05.23"][White "Ndjofang, J.M."][Black "Heusdens, R."][Result "1/2-1/2"][GameType "20"]    1. 32-28 17-22 2. 28x17 12x21 3. 31-26 7-12 4. 26x17 12x21 5. 36-31 19-23 6.  34-29 23x34 7. 39x30 20-24 8. 30x19 14x23 9. 37-32 21-27 10. 31x22 18x27 11.  32x21 16x27 12. 41-37 10-14 13. 46-41 11-17 14. 33-29 23x34 15. 40x29 6-11 16.  35-30 14-20 17. 45-40 20-24 18. 30x19 13x33 19. 38x29 5-10 20. 42-38 10-14 21.  44-39 8-12 22. 40-34 14-19 23. 50-44 2-7 24. 48-42 19-23 25. 29x18 12x23 26.  39-33 7-12 27. 33-28 23x32 28. 37x28 9-13 29. 44-39 3-9 30. 38-33 9-14 31.  34-30 17-21 32. 33-29 21-26 33. 43-38 1-7 34. 41-37 11-17 35. 39-34 7-11 36.  30-24 11-16 37. 34-30 27-31 38. 28-23 16-21 39. 30-25 12-18 40. 23x12 17x8  1/2-1/2 

See also

Original page for Sage Draughts, the first program to implement PDN, by the author of the first PDN specification (A.Millett)]

PDN viewers

Related Research Articles

<span class="mw-page-title-main">Chessboard</span> Any board used in the game chess

A chessboard is a gameboard used to play chess. It consists of 64 squares, 8 rows by 8 columns, on which the chess pieces are placed. It is square in shape and uses two colours of squares, one light and one dark, in a chequered pattern. During play, the board is oriented such that each player's near-right corner square is a light square.

<span class="mw-page-title-main">Algebraic notation (chess)</span> Method to convey chess moves

Algebraic notation is the standard method for recording and describing the moves in a game of chess. It is based on a system of coordinates to uniquely identify each square on the chessboard. It is used by most books, magazines, and newspapers.

<span class="mw-page-title-main">Checkers</span> Board game

Checkers, also known as draughts, is a group of strategy board games for two players which involve diagonal moves of uniform game pieces and mandatory captures by jumping over opponent pieces. Checkers is developed from alquerque. The term "checkers" derives from the checkered board which the game is played on, whereas "draughts" derives from the verb "to draw" or "to move".

<span class="mw-page-title-main">Fischer random chess</span> Chess variant invented by Bobby Fischer

Fischer random chess, also known as Chess960, is a variation of the game of chess invented by the former world chess champion Bobby Fischer. Fischer announced this variation on June 19, 1996, in Buenos Aires, Argentina. Fischer random chess employs the same board and pieces as classical chess, but the starting position of the pieces on the players' home ranks is randomized, following certain rules. The random setup makes gaining an advantage through the memorization of openings impracticable; players instead must rely more on their skill and creativity over the board.

<span class="mw-page-title-main">International draughts</span> Strategy board game

International draughts is a strategy board game for two players, one of the variants of draughts. The gameboard comprises 10×10 squares in alternating dark and light colours, of which only the 50 dark squares are used. Each player has 20 pieces, light for one player and dark for the other, at opposite sides of the board. In conventional diagrams, the board is displayed with the light pieces at the bottom; in this orientation, the lower-left corner square must be dark.

Portable Game Notation (PGN) is a standard plain text format for recording chess games, which can be read by humans and is also supported by most chess software.

Forsyth–Edwards Notation (FEN) is a standard notation for describing a particular board position of a chess game. The purpose of FEN is to provide all the necessary information to restart a game from a particular position.

<span class="mw-page-title-main">Checkerboard</span> Board with an alternating square pattern on which games are played

A checkerboard or chequerboard is a board of checkered pattern on which checkers is played. Most commonly, it consists of 64 squares (8×8) of alternating dark and light color, typically green and buff, black and red, or black and white. An 8×8 checkerboard is used to play many other games, including chess, whereby it is known as a chessboard. Other rectangular square-tiled boards are also often called checkerboards.

Chess notation systems are used to record either the moves made or the position of the pieces in a game of chess. Chess notation is used in chess literature, and by players keeping a record of an ongoing game. The earliest systems of notation used lengthy narratives to describe each move; these gradually evolved into more compact notation systems. Algebraic notation is now the accepted international standard, with several variants. Descriptive chess notation was used in English- and Spanish-language literature until the late 20th century, but is now obsolescent. Portable Game Notation (PGN) is a text file format based on English algebraic notation which can be processed by most chess software. Other notation systems include ICCF numeric notation, used for international correspondence chess, and systems for transmission using Morse code over telegraph or radio. The standard system for recording chess positions is Forsyth–Edwards Notation (FEN).

<span class="mw-page-title-main">English draughts</span> Board game

English draughts or checkers, also called straight checkers or simply draughts, is a form of the strategy board game checkers. It is played on an 8×8 checkerboard with 12 pieces per side. The pieces move and capture diagonally forward, until they reach the opposite end of the board, when they are crowned and can thereafter move and capture both backward and forward.

X-FEN is an extension of Forsyth–Edwards Notation (FEN) introduced by Reinhard Scharnagl in 2003. It was designed to be able to represent all possible positions in Fischer random chess (FRC) and Capablanca random chess (CRC). It is fully backward compatible with FEN.

<span class="mw-page-title-main">Lasca</span> Board game invented by Emanuel Lasker

Lasca is a draughts variant, invented by the second World Chess Champion Emanuel Lasker (1868–1941). Lasca is derived from English draughts and the Russian draughts game bashni (Towers).

<span class="mw-page-title-main">Camelot (board game)</span> Board game designed by George S. Parker

Camelot is a strategy board game for two players. It was invented by George S. Parker late in the 19th century, and was one of the first games published by Parker Brothers, originally under the name Chivalry.

<span class="mw-page-title-main">Russian draughts</span>

Russian draughts is a variant of draughts (checkers) played in Russia and some parts of the former USSR, as well as parts of Eastern Europe and Israel.

Leap Frog, also known as Leapfrog, is a multi-player abstract strategy board game that was described by H.J.R. Murray in A History of Board Games Other Than Chess (1898) and attributes its origin to England. Several variants have been created including one by Murray himself which utilizes different colored pieces with different point values. Several players can participate. In the traditional game, players take any piece on the board and use it to hop over and capture other pieces on the board. When no more pieces can be captured, the game ends, and the player with the most pieces wins the game. Murray includes it in the section called Clearance Games which includes the game Solitaire which it does resemble in many ways except that Solitaire is played by only one person.

Omega Chess is a commercial chess variant designed and released in 1992 by Daniel MacDonald. The game is played on a 10×10 board with four extra squares, each added diagonally adjacent to the corner squares. The game is laid out like standard chess with the addition of a champion in each corner of the 10×10 board and a wizard in each new added corner square.

<span class="mw-page-title-main">Dameo</span> Abstract strategy board game

Dameo is an abstract strategy board game for two players invented by Christian Freeling in 2000. It is a variant of the game draughts and is played on an 8×8 checkered gameboard.

<span class="mw-page-title-main">Canadian checkers</span>

Canadian checkers is a variant of the strategy board game draughts. It is one of the largest draughts games, played on a 12×12 checkered board with 30 game pieces per player.

<span class="mw-page-title-main">Poddavki</span> Board game

Poddavki, also known as Giveaway checkers, Suicide checkers, Anti-checkers or Losing draughts is a draughts (checkers) game based on the rules of Russian draughts, with the variation that a player wins if they have no legal moves on their turn, either by giving up all their pieces or having them all blocked. As in most varieties of draughts, capturing is mandatory. The game is played in Russia and some parts of the former Soviet Union.

<span class="mw-page-title-main">Bashni</span> Russian board game

Bashni, also known as column draughts, multi-level checkers, and rarer Chinese checkers, is a variation of draughts, known in Russia since the 19th century. The game is played according to the basic rules of Russian draughts, with the main difference being that draughts being jumped over are not removed from the playing field but are instead placed under the jumping piece . The resulting towers move across the board as one piece, obeying the status of the upper draught. When a tower is jumped over, only the upper draught is removed from it. If, as a result of the combat, the top draught changes colour, ownership of the tower passes on to the opposing player. Based on Bashni, but according to the basic rules of English draughts, world chess champion Emanuel Lasker developed the draughts game "Laska" and, in 1911, published its description. Lasker described towers that can only be "double-layered": i.e. there can be no alternation of colors. He also showed that during the game the number of game pieces either remains constant or decreases. Column draughts are a subject of interest for the mathematical Sciences: combinatorics, theory of paired zero-sum games, etc.