Forsyth-Edwards Notation

Forsyth-Edwards Notation

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.

FEN is based on a system developed by the Scottish newspaper journalist, David Forsyth. Forsyth's system became popular in the 19th century; Steven J. Edwards extended it to support use by computers. FEN is an integral part of the Portable Game Notation for chess games, since FEN is used to define initial positions other than the standard one. FEN does not represent sufficient information to decide on draws by threefold repetition; for that, a different format such as Extended Position Description is needed.

Definition

A FEN "record" defines a particular game position, all in one text line and using only the ASCII character set. A text file with only FEN data records should have the file extension ".fen".

A FEN record contains six fields. The separator between fields is a space. The fields are:
# Piece placement (from white's perspective). Each rank is described, starting with rank 8 and ending with rank 1; within each rank, the contents of each square are described from file a through file h. Following the Standard Algebraic Notation (SAN), each piece is identified by a single letter taken from the standard English names (pawn = "P", knight = "N", bishop = "B", rook = "R", queen = "Q" and king = "K") [ [http://www.thechessdrum.net/PGN_Reference.txt Portable Game Notation Specification and Implementation Guide] ] . White pieces are designated using upper-case letters ("PNBRQK") while Black take lowercase ("pnbrqk"). Blank squares are noted using digits 1 through 8 (the number of blank squares), and "/" separate ranks.
# Active color. "w" means white moves next, "b" means black.
# Castling availability. If neither side can castle, this is "-". Otherwise, this has one or more letters: "K" (White can castle kingside), "Q" (White can castle queenside), "k" (Black can castle kingside), and/or "q" (Black can castle queenside).
# En passant target square in algebraic notation. If there's no en passant target square, this is "-". If a pawn has just made a 2-square move, this is the position "behind" the pawn.
# Halfmove clock: This is the number of halfmoves since the last pawn advance or capture. This is used to determine if a draw can be claimed under the fifty move rule.
# Fullmove number: The number of the full move. It starts at 1, and is incremented after Black's move.

Examples

Here is the FEN for the starting position:

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
Here is the FEN after the move 1. e4:
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1

And then after 1. ... c5:

rnbqkbnr/pp1ppppp/8/2p5/4P3/8/PPPP1PPP/RNBQKBNR w KQkq c6 0 2
And then after 2. Nf3:

rnbqkbnr/pp1ppppp/8/2p5/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq - 1 2

FEN adjustment for chess960

FEN notation is critical for recording games in chess variants such as chess960 (also known as Fischer Random Chess), where the initial position is not necessarily the traditional initial position. However, the FEN castling availability encoding (KQkq) is inadequate for chess960 positions in which there are two Rooks on the same side of the King on the back rank. It ambiguous which Rook is still available for castling without knowing their initial positions.

The solution implemented by chess engines like Shredder and Fritz_9 is to use the letters of the columns on which the rooks began the game. This scheme is sometimes called Shredder-FEN.Fact|date=August 2008 For the traditional setup, Shredder-FEN would use AHah instead of KQkq.

Another solution is offered by X-FEN, which offers more backward compatibility than does Shredder-FEN, but at the cost of more complexity.

References

ee also

*

External links

* [http://www.chessclub.com/help/PGN-spec Portable Game Notation Specification and Implementation Guide, Steven J. Edwards]
* [http://www.dwheeler.com/misc/fen2wikipedia.html Translate FEN Chess positions into Wikipedia format]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Forsyth-Edwards Notation — Die Forsyth Edwards Notation (FEN) oder in der erweiterten Form (X FEN) ist eine Kurznotation, mit der jede beliebige Brettstellung im Schach niedergeschrieben werden kann. Inhaltsverzeichnis 1 Aufbau 1.1 1. Gruppe 1.2 2. Gruppe 1.3 3. Gruppe 1 …   Deutsch Wikipedia

  • Forsyth-Edwards-Notation — Die Forsyth Edwards Notation (FEN) oder in der erweiterten Form (X FEN) ist eine Kurznotation, mit der jede beliebige Brettstellung im Schach niedergeschrieben werden kann. Inhaltsverzeichnis 1 Aufbau 1.1 1. Gruppe 1.2 2. Gruppe …   Deutsch Wikipedia

  • Notation Forsyth-Edwards — Pour les articles homonymes, voir FEN. Au jeu d échecs, la notation Forsyth Edwards (en anglais, Forsyth Edwards Notation : FEN) sert à noter la position des pièces sur l échiquier. La notation dérive d une autre mise au point par le… …   Wikipédia en Français

  • Notation forsyth-edwards — Pour les articles homonymes, voir FEN. Au jeu d échecs, la notation Forsyth Edwards (abrégé par FEN en anglais) sert à noter la position des pièces sur l échiquier. La notation dérive d une autre mise au point par le journaliste écossais David… …   Wikipédia en Français

  • Forsyth — NOTOC Forsyth may refer to:Places* Forsyth Island, Tasmania, Australia * Forsyth, Georgia, US city, site of an 1829 meteorite fall * Forsyth County, North Carolina, USA * Forsyth County, Georgia, USA * Forsyth, Illinois, US village * Forsyth,… …   Wikipedia

  • Algebraische Notation — Zum Aufzeichnen von Schachpartien oder Schachstellungen gibt es verschiedene Systeme der Schachnotation. Um die Züge niederzuschreiben, benutzen die Spieler in der Regel vorgedruckte Partieformulare. Eine einzelne Schachstellung kann in der… …   Deutsch Wikipedia

  • Chess notation — is the term for several systems that have developed to record either the moves made during a game of chess or the position of the pieces on a chess board. The earliest systems of notation used lengthy narratives to describe each move; these… …   Wikipedia

  • Portable Game Notation — Infobox file format extension = .pgn mime = application/x chess pgn (unregistered)Portable Game Notation (PGN) is a computer processible format for recording chess games (both the moves and related data); many chess programs recognize this… …   Wikipedia

  • Clan Forsyth — Crest badge …   Wikipedia

  • David Forsyth (chess) — David Forsyth (1854–1909), a Scotsman who emigrated to New Zealand, served as chess editor of the Glasgow Weekly Herald. Forsyth invented a method for recording chess positions, which he published in the Glasgow Weekly Herald in 1883, now known… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”