The chessboard, the pieces and algebraic notation
P72.chess-notation.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: Writing your own tiny function
Where next?
Go up a level
P72.chess-notation.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: Writing your own tiny function
Go up a level
Open any chess book, or any newspaper's chess column, and you meet two things:
a diagram, a square board seen from above with the pieces on it, and lines of
short codes such as 1. e4 e5 2. Nf3 Nc6. The diagram shows a position; the
codes are the moves that led to it. Neither is hard to read once you know the
board's names for its squares and the pieces' letters, and that is all this
lesson teaches. How each piece moves is the next lesson.
A chessboard has 64 squares, eight by eight, alternately light and dark. It is always set so that each player has a light square in the corner on their right-hand side. White's pieces start on the side nearest White, and a diagram is drawn from White's side: White at the bottom, Black at the top.
Every square has a name made of two parts:
The square in White's left-hand corner is a1, and it is dark. The one in White's right-hand corner is h1, light, as the rule says. The square on the fifth file and the fourth rank is e4: the letter first, then the number. Black's corners are a8 and h8. Like a street map, the letter tells you how far across and the number how far up.
Each side starts with sixteen pieces: one king, one queen, two rooks, two bishops, two knights and eight pawns. Each piece but the pawn has a capital letter, the initial of its English name, except the knight, whose initial is already the king's:
| Piece | Letter | How many | Where White's stand at the start |
|---|---|---|---|
| King | K | 1 | e1 |
| Queen | Q | 1 | d1 |
| Rook | R | 2 | a1, h1 |
| Bishop | B | 2 | c1, f1 |
| Knight | N | 2 | b1, g1 |
| Pawn | no letter | 8 | a2 to h2 |
Black's pieces stand opposite, on ranks 8 and 7, each one on the same file as its White counterpart: Black's king on e8, facing White's on e1.
In the diagrams of this platform, a piece is drawn as a disc carrying its letter, white for White and dark for Black, and a pawn as a smaller disc with no letter at all, because notation never writes one.
The notation almost every chess book now uses is algebraic notation. Most of continental Europe used it from the nineteenth century, and FIDE, the world chess federation, has required it since 1981. A move is written as the piece's letter followed by the square it moves to:
Moves are numbered in pairs, White's first: 1. e4 e5 is White's first move,
a pawn to e4, and Black's reply, a pawn to e5. Here is the start of an opening
named after Ruy López, a Spanish priest who wrote about it in 1561, and still
played by masters today:
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Bxc6
Read it move by move: White's e-pawn to e4, Black's to e5; White's knight from g1 to f3, Black's from b8 to c6; White's bishop from f1 to b5, Black's a-pawn one step to a6; and White's bishop takes Black's knight on c6.
Chess has been written down for centuries, first in long sentences, then in a "descriptive" shorthand (P-K4 for e4) that named squares from each player's own side, so the same square had two names. Algebraic notation gives every square one name, whichever side you play, and that is why a computer, a database of millions of games and a newspaper column can all use it. The same idea serves the next lessons: a whole position written as one line of text, called FEN, and a search program reading it.
Why it matters — A game written down can be replayed, taught, searched and computed on, a century later or by a program.
What this lesson leaves for the next ones: how each piece moves, and check and checkmate; castling, en passant and promotion, which have notations of their own; and the extra letter or number written when two pieces of the same kind could reach one square.
The first rung fills in one line of a short program that turns a square's name into its column and row numbers, and back: the step a program takes before it can compute anything on a board. The second, written from scratch, reads a move: which piece, which square, and whether it captures. Then a short gapped set checks the reading.
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Loading exercise…
Loading exercise…
Loading the exercise...
Loading your notes...