## FEN Reader

## SAN Reader

## Answers to Questions

### How to note down chess moves?

Chess game moves are usually indicated with algebraic notation SAN (Standard Algebraic Notation), the official description system of the International Chess Federation. This system has an short version which is the most used.

The algebraic notation associates with each piece a letter:

Piece | Notation |
---|---|

King | K |

Queen | Q |

Rook | R |

Bishop | B |

kNight | N |

Pawn | nothing (or P) |

The principle of algebraic notation is to designate a move with the piece, its starting square and its destination cell. The 64 squares of the chessboard are marked with a coordinate system from the bottom left: the numbers 1 to 8 for the columns and the lowercase letters from a to h for the rows.

Example: The square at the bottom left is named a1, the square at the top left is called h1, the square at the bottom right is called a8 and the top right square is called h8

The abbreviated notation does not indicate the starting position because it is theoretically known.

Example: A move of a king from the 1st square of the 1st row (column 1 = a, row 1) to the 2nd square of the 2nd row (column 2 = b, row 2) is written Ka1-b2 or Kb2 in short version.

When the chess play is a move, a dash - is indicated between the 2 squares, if it is a catch, it is noted x. In abbreviated version, only the x is noted.

Example: e2-e3, abbreviated to e3, means: the pawn moves to e3

Example: e2xf3, abbreviated to xf3, means: the pawn takes the piece located in box f3

White start, a move number is usually indicated before each movement of a white piece, the black move is indicated after the white one.

Example: 1. e4 Cf6

2. d4 Nxe4

Finally, a position where the king is in check is noted +, and # for checkmate.

### How to note down the position of a chessboard?

To describe, at a given moment, the position of all the pieces of a chessboard, the FEN notation (Forsyth-Edwards Notation) is the most used.

On a single line, the positions of all the pieces as well as the possible rooks, the stroke number or the color of the next turn are described.

The FEN notation of the pieces is:

Piece | White | Piece | Black |
---|---|---|---|

K | King | k | King |

Q | Queen | q | Queen |

R | Rook | r | Rook |

B | Bishop | b | Bishop |

N | Knight | n | Knight |

P | Pawn | p | Pawn |

1-8 | N empty boxes |

The initial position of a classical chess game is described:

Example: rnbqkbnr / pppppppp / 8/8/8/8 / PPPPPPPP / RNBQKBNR w KQkq - 0 1

rnbqkbnr | Rook (black), Knight (black), Bishop (black), Queen (black), King (black), Bishop (black), Knight (black), Rook (black) |

/ | Line separator |

pppppppp | 8 pawns (black) |

8 | 8 empty boxes |

PPPPPPPP | 8 pawns (white) |

RNBQKBNR | Rook (white), Knight (white), Bishop (white), Queen (white), King (white), Bishop (white), Knight (white), Rook (white) |

w | White turn |

KQkq | Castling (black) is possible king side (K) and queen site (Q) and the castle (white) is possible for king side (k) and queen side (q) |

- | Possible square coordinated for a catch en passant |

0 | Number of moves since last catch |

1 | Move number |

## Source code

dCode retains ownership of the source code of the script Chess Notations online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Chess Notations script for offline use on PC, iPhone or Android, ask for price quote on contact page !