Squares have names
Every square is named by its file (a to h, left to right from White's side) and its rank (1 to 8, from White's side up). The square in White's bottom-left corner is a1; Black's king starts on e8.
Writing moves (SAN)
Standard Algebraic Notation (SAN) writes the piece letter and the square it moves to. The letters are K for king, Q for queen, R for rook, B for bishop and N for knight. Pawns have no letter.
| Written | Meaning |
|---|---|
| e4 | A pawn moves to e4. |
| Nf3 | A knight moves to f3. |
| Bxc6 | A bishop captures on c6 (x means capture). |
| exd5 | The pawn on the e-file captures on d5. |
| Nbd2 | The knight on the b-file goes to d2, when two knights could. |
| O-O / O-O-O | Castling on the kingside / on the queenside. |
| e8=Q | A pawn reaches e8 and becomes a queen. |
| Qh5+ / Qf7# | + means check, # means checkmate. |
Moves are numbered in pairs: 1. e4 e5 2. Nf3 Nc6 means White played e4, Black answered e5, then White played Nf3 and Black Nc6.
PGN: a whole game in a text file
PGN (Portable Game Notation) stores a game as plain text: a few tags in square brackets, then the moves in SAN and the result. Every chess program can open it. On XeChess, the share menu of any game lets you copy the PGN or download it as a .pgn file.
[Event "Casual game"] [Site "xechess.com"] [White "Ada"] [Black "Ember"] [Result "1-0"] 1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Ng5 d5 5. exd5 Nxd5 6. Nxf7 1-0
The result is 1-0 when White wins, 0-1 when Black wins and 1/2-1/2 for a draw.
FEN: one position in one line
FEN (Forsyth-Edwards Notation) describes a single position. It lists the pieces rank by rank from the eighth rank down, uppercase for White and lowercase for Black, with digits for empty squares. Then come the side to move, castling rights, the en passant square and two move counters.
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1
This is the position after 1. e4: Black to move (b), both sides can still castle either way (KQkq), and e3 is the square a pawn could capture en passant.
PGN and PNG are different things: PGN is the text of a game, while PNG is an image format. XeChess gives you both, the moves as PGN and a picture of the board as PNG.
Questions
What does Nf3 mean in chess?
It means a knight moves to the f3 square. Each piece has a letter (K king, Q queen, R rook, B bishop, N knight) and pawns have none, so e4 is a pawn move to e4.
What is a PGN file?
PGN (Portable Game Notation) is a plain-text file with the moves of a game and tags such as the players, date and result. Any chess program can open it.
What is a FEN?
FEN (Forsyth-Edwards Notation) is one line of text that describes a single position: where every piece stands, whose turn it is, castling rights, the en passant square and the move counters.