Experiment Web
CaroPikachuSudokuProcess
  1. Blog

  2. Chess

Learn chess from scratch

Chess looks hard because it has many rules, but each rule is small. This guide builds them in order: the board, how every piece moves, the three special moves, how a game ends, and then the ideas that win games (openings, tactics, mating patterns, endgames). Every example is a 3D board that plays the moves one at a time.

How to use the 3D boards: drag to turn the board, scroll or pinch to zoom, press Play or step through the moves. White starts at the bottom. A yellow square is the last move, green dots are squares the piece can go to, red rings mark the key squares and a red square is a king in check.

The board and the starting position

Chess is played by two players on an 8 by 8 board of 64 squares, alternating light and dark. One player has the white pieces and the other the black pieces. White always moves first, then the players take turns, one move each. You cannot pass.

Each side starts with 16 pieces: 8 pawns, 2 rooks, 2 knights, 2 bishops, 1 queen and 1 king. The pawns fill the second row. The other pieces stand on the first row: rooks in the corners, then knights, then bishops, then the queen and the king in the middle.

The columns are called files and are named a to h from left to right (from White's side). The rows are called ranks and are numbered 1 to 8 from White's side. Every square has a name made of its file and rank, like e4 or g8. You will need these names to read moves later.

  • Two memory tricks for the setup: the bottom-right corner square must be light ("light on the right"), and the queen always starts on her own colour (the white queen on the light square d1, the black queen on the dark square d8).
  • The goal of the game is to checkmate the opponent's king: attack it so that it cannot escape. You never capture the king; the game ends before that.

The starting position

Turn the board and read the file letters a to h and the rank numbers 1 to 8 around it. White is at the bottom. Notice the queens facing each other on d1 and d8, and the kings on e1 and e8.

Loading the 3D board...

How every piece moves

A piece moves to an empty square or captures an enemy piece by taking its place; the captured piece leaves the board for good. You can never capture your own pieces. Every piece except the knight cannot jump over other pieces.

Press Play or look at the green dots in each example below: they show exactly the squares that piece can reach from where it stands.

Rook

The rook moves any number of squares in a straight line, along a rank or a file, but not diagonally. From d4 on an empty board it reaches 14 squares. Rooks are strongest on open files where no pawn is in the way.

Loading the 3D board...

Bishop

The bishop moves any number of squares diagonally. It always stays on the same colour of squares it started on, so each side has a light-squared and a dark-squared bishop. Because it covers only half the squares, two bishops working together are valuable.

Loading the 3D board...

Queen

The queen moves like a rook and a bishop combined: any number of squares in a straight line or on a diagonal. She is the strongest piece (9 points), so bring her out carefully so she is not chased by lesser pieces.

Loading the 3D board...

Knight

The knight moves in an L shape: two squares in one direction and then one square sideways. It is the only piece that jumps over others, which makes it very useful in crowded positions. From the centre it reaches 8 squares; in a corner only 2.

Loading the 3D board...

King

The king moves one square in any direction. It can never move to a square attacked by an enemy piece, and the two kings can never stand next to each other. Keep it safe: it is the piece you must never lose.

Loading the 3D board...

Pawn: moving

A pawn moves straight forward one square. From its starting square it may instead advance two squares. Pawns never move backwards and cannot capture the piece directly in front of them, so a pawn can be blocked.

Loading the 3D board...

Pawn: capturing

A pawn captures one square diagonally forward, which is different from how it moves. Here the white pawn on e4 can step to e5 or capture either black pawn on d5 and f5.

Loading the 3D board...

Three special moves

These moves look odd the first time, but they are part of the standard rules, and a position can depend on them. Each one has conditions that must all be true.

  • Castling: the king moves two squares towards a rook, and that rook jumps to the other side of the king. Conditions: neither the king nor that rook has moved before, there are no pieces between them, the king is not in check, and the king does not pass through or land on an attacked square.
  • En passant ("in passing"): if an enemy pawn advances two squares from its start and lands right beside your pawn, you may capture it on the very next move as if it had moved only one square. If you do not do it immediately, the chance is gone.
  • Promotion: a pawn that reaches the far row must become a queen, rook, bishop or knight of its own colour (almost always a queen). You do not need to have lost that piece before.

Castling, short and long

White castles on the king's side (O-O): the king goes to g1 and the rook from h1 to f1. Then Black castles on the queen's side (O-O-O): the king goes to c8 and the rook from a8 to d8. In one move you hide the king and activate a rook.

Loading the 3D board...

En passant

Black has just played d7-d5, passing beside the white pawn on e5. White can capture "in passing" with exd6: the pawn lands on d6, the square the black pawn skipped, and the black pawn on d5 is removed. The red ring marks the captured pawn.

Loading the 3D board...

Promotion

The white pawn reaches a8 and becomes a queen with a check. Choosing a knight or another piece is called underpromotion and is rare, but a knight can sometimes give a check the queen cannot.

Loading the 3D board...

Check, checkmate and draws

Check means the king is attacked. You must answer it at once in one of three ways: move the king to a safe square, capture the attacking piece, or block the line between them (not possible against a knight). A move that leaves your own king in check is illegal.

Checkmate means the king is in check and there is no legal way out. The player who is checkmated loses and the game ends immediately.

A draw (half a point each) happens by: stalemate (the player to move has no legal move but is not in check), agreement, insufficient material (for example king against king), threefold repetition of the same position, or the fifty-move rule (fifty moves by each side with no capture and no pawn move).

Do not stalemate by accident

When you are far ahead, always check that your opponent has a legal move before you make yours. Giving stalemate turns a won game into a draw.

Check

The rook goes to a8 and attacks the black king along the back row. The king square turns red. Black answers by moving the king to d7, out of the line of attack.

Loading the 3D board...

Fool's mate: the shortest game

After 1.f3 e5 2.g4, Black plays Qh4#. The white king is attacked on the diagonal h4 to e1, and the pawns that would block it have moved away. It is a warning not to open the diagonal in front of your own king.

Loading the 3D board...

Stalemate

It is Black's turn. The king on h8 is not in check, but every square it could go to (g8, h7, g7) is attacked, and Black has no other piece. With no legal move and no check, the game is a draw even though White has a queen more.

Loading the 3D board...

Piece values and trading

Players use points to judge a trade. They are only a guide, because a piece's real worth depends on the position, but they stop you from giving away more than you take.

  • Pawn = 1 point.
  • Knight = 3 points and bishop = 3 points (two bishops together are slightly stronger than a bishop and a knight).
  • Rook = 5 points.
  • Queen = 9 points.
  • King: priceless, since losing it ends the game. In the endgame it is also a strong fighting piece.
  • Giving a rook (5) for a knight (3) loses material, and taking a defended pawn with your queen (9 for 1) is a blunder.

The three-question check

Before every move ask: what does my opponent threaten now? What does my move threaten? Is the piece I move (or any piece I leave behind) left hanging, meaning attacked and not defended?

Reading and writing moves

Games are written in algebraic notation (SAN). It is what every book, website and the move list under each 3D board use.

  • The piece letter comes first: K king, Q queen, R rook, B bishop, N knight (K is taken). A pawn has no letter. Then the square it goes to: Nf3 means a knight goes to f3, and e4 means a pawn goes to e4.
  • x means a capture: Bxc6 is a bishop capturing on c6, and exd5 is the pawn from the e-file capturing on d5.
  • + means check and # means checkmate: Qh4#.
  • O-O is castling on the king's side (short) and O-O-O is castling on the queen's side (long).
  • =Q after a pawn move is promotion: a8=Q. If two same pieces can reach a square, the file or rank is added: Rad1.
  • Moves are numbered in pairs: 1.e4 e5 means White played e4 and Black replied e5.

Touch-move rule

In a real game, if you touch a piece you must move it, and once you let go of it on a square the move is made. Decide before you touch.

References

  • FIDE Laws of Chess (official rules)
  • Lichess: Learn chess (interactive lessons)
  • Wikipedia: Rules of chess
  • Wikipedia: Chess tactics and checkmate patterns
  • chess.js (the move generator behind every example)