How to play

How to play chess

Chess is a game for two players on a board of 64 squares. Each side starts with sixteen pieces: a king, a queen, two rooks, two bishops, two knights and eight pawns. This page explains the rules one at a time. Next to each rule is a small board where you can try it: tap a piece to see where it can go, then tap a square to move it.

The goal

You win by checkmating your opponent's king: attacking it so that it cannot escape. The king is never actually taken. White moves first, then the players take turns, one move each. You must move when it is your turn; you cannot pass.

Setting up the board

Place the board so each player has a light square in the right-hand corner. The rooks go in the corners, then the knights, then the bishops. The queen stands on her own colour: the white queen on a light square, the black queen on a dark one. The king takes the last square, and the pawns fill the row in front.

The starting position. Tap a white piece to see where it can go, then tap a square to move it.

How the pieces move

Each piece moves in its own way. No piece can move through another, except the knight. You capture by moving onto a square held by an opponent's piece, which then leaves the board. You can never capture your own pieces.

The king

The king moves one square in any direction. It may never move to a square where it would be attacked. The whole game is about the king, so keep it safe.

Tap the king to see its squares, then tap one to move it.

The queen

The queen moves any number of squares in a straight line: along a row, along a column or diagonally. It is the strongest piece.

From the middle of the board the queen reaches 27 squares.

The rook

The rook moves any number of squares along a row or a column. Like every piece except the knight, it stops at the first piece in its way. It can capture an opponent's piece there, but it cannot jump over it.

Your own pawn on g4 blocks the rook. The black pawn on d7 can be captured.

The bishop

The bishop moves any number of squares diagonally. It stays on squares of one colour for the whole game, so each side has one bishop for the light squares and one for the dark squares.

The bishop can capture the black knight on f6. Its own pawn on b2 is in the way.

The knight

The knight moves in an L: two squares in a straight line, then one to the side. It is the only piece that jumps over other pieces, and it always lands on a square of the other colour.

The knight is boxed in by its own pawns, and can still jump out to eight squares.

The pawn

The pawn moves one square straight forward, never backwards. From its starting square it may move two squares at once. It captures differently from how it moves: one square diagonally forward. A pawn with a piece right in front of it cannot move forward.

The c2 pawn has not moved yet, so it can go one or two squares. The e4 pawn is blocked, but can capture on d5.

Check, checkmate and stalemate

Check

A king that is attacked is in check. You must get out of check straight away, and there are three ways: move the king to a safe square, put a piece between the king and the attacker, or capture the attacker. A move that leaves your own king in check is not allowed.

The black rook on e8 gives check. Find one way out, then start again and find another.

Checkmate

Checkmate is a check with no way out. The game ends at once, and the player who gave checkmate wins.

White to move. Find the checkmate in one move.

Stalemate

Stalemate is when the player to move is not in check but has no legal move. The game is then a draw, even when the other side is far ahead. It is the classic way to throw away a won game: when you are winning, leave the other king a square until you can checkmate it.

White to move. One queen move wins, another only draws. Find the checkmate.

Three special moves

Castling

Once per game, the king can castle: it moves two squares towards one of its rooks, and that rook jumps to the square on the king's other side. It counts as one move, puts the king somewhere safer and brings the rook into play. You may only castle when the king and that rook have not moved yet, there is nothing between them, the king is not in check, and the king does not pass through or land on an attacked square.

Tap the king and move it two squares to the left or right.

En passant

When a pawn moves two squares from its starting square and lands next to an enemy pawn, that enemy pawn may capture it as if it had moved only one square. This is called en passant, French for "in passing". It is only allowed on the very next move.

Black has just moved a pawn from d7 to d5, next to yours on e5. Capture it en passant by moving to d6.

Promotion

A pawn that reaches the far side of the board is promoted: it becomes a queen, rook, bishop or knight of its own colour, whichever you choose. You can have more than one queen this way.

Move the pawn to e8 and choose what it becomes.

Other ways to draw

Besides stalemate, a game is drawn when:

  • both players agree to a draw;
  • the same position occurs three times, with the same player to move (threefold repetition);
  • both sides have made fifty moves without a pawn move or a capture (the 50-move rule);
  • neither side has enough pieces left to checkmate, such as a king against a king, or a king and a bishop against a king.

Gunnie's Gambit spots the last three for you and ends the game.

Reading and writing moves

Hints, puzzles and the game review write moves in algebraic notation, the short form that chess books and apps use. A move is the letter of the piece followed by the square it moves to.

Square names

Every square is named by its column and its row. The columns, called files, are the letters a to h from left to right as White sees the board. The rows, called ranks, are the numbers 1 to 8, starting from White's side. So White's pieces start on ranks 1 and 2, Black's on 7 and 8, and the white king starts on e1.

Piece letters

K is the king, Q the queen, R a rook, B a bishop and N a knight (K is taken by the king). Pawns have no letter. So Nf3 means a knight moves to f3, and e4 means a pawn moves to e4. White's move and Black's answer share a number: 1. e4 e5 2. Nf3 is White's pawn to e4, Black's pawn to e5, then White's knight to f3.

Tap any square to see its name and the piece on it.

Signs in a move

x
A capture: Bxf7 is a bishop taking on f7. A pawn capture names the file the pawn came from, so exd5 is the e-pawn taking on d5.
+
Check: Qh5+ is a queen move to h5 that gives check.
#
Checkmate: Qxf7# takes on f7 and mates.
O-O
Castling kingside; O-O-O is castling queenside.
=Q
Promotion: e8=Q is a pawn reaching e8 and becoming a queen.
Nbd2
When two pieces of the same kind can reach the square, the file or rank they come from is added: the knight from the b-file goes to d2.

Typing a move

In Play and Analyse you can type a move under Type a move instead of tapping, in this notation: Nf3, exd5, O-O or e8=Q. Lower case works too, such as nf3, o-o or e8q, though bxc3 is read as a pawn capture when one is possible; write Bxc3 for the bishop. You can also type the square a piece starts on and the square it goes to, such as g1f3.

First tactics

A tactic is a short sequence of moves that wins material or checkmates, because the other side cannot answer every threat at once. Each board below is a puzzle for the side to move, shown at the bottom of the board. Play your move and the board answers for the other side. A wrong move is taken back, so you can try again; Hint shows which piece to move.

0 of 12 solved

Double attacks

Most tactics come down to making two threats with one move. The other side can parry one of them, and you carry out the other.

The knight fork

A fork is one piece attacking two at once. The knight is made for it: a knight's check cannot be blocked, and the pieces it attacks cannot hit it back unless they are knights too. Look for a square from which the knight checks the king and hits something valuable at the same time.

White to move and win the black queen.

Solved

The queen fork

The queen can fork too, along a row, a column and two diagonals at the same time. A check is the strongest half of a fork, because the other side has to deal with it first and has no time to save the second piece.

White to move and win material. An undefended piece on the edge is a target.

Solved

The discovered attack

When a piece moves out of the way, the rook, bishop or queen behind it suddenly attacks along the line it opened. Now two pieces threaten something at once: the one that moved and the one behind it. It is strongest when the piece that moves gives check.

White to move and win the black queen.

Solved

The double check

A double check is a discovered attack in which both pieces give check. No single move can capture or block two checking pieces, so the king has to move. When it has no square to go to, a double check is checkmate.

White to move and checkmate in one move.

Solved

Attacks along a line

Rooks, bishops and queens attack along lines. When two enemy pieces stand on the same line, one behind the other, the front one is in trouble or the back one is.

The pin

A piece is pinned when it stands on a line between an attacker and a more valuable piece behind it. When that piece behind is the king, the pinned piece may not move off the line at all, because that would expose its king to check.

White to move and win the black queen.

Solved

The skewer

A skewer is a pin the other way round: the more valuable piece stands in front. When you attack it, it has to step aside, and the piece behind it falls. A check makes the best skewer, because the king must move.

This puzzle is for Black, so the board is turned with Black at the bottom.

Black to move and win the white queen.

Solved

Removing the defender

A piece that is attacked once and defended once is safe. Take away or lure away its defender, and it is not.

Capture the defender

Count the attackers and defenders of a piece. If only one piece guards it, capturing that guard first leaves the piece hanging, even when the capture itself is only an even trade.

Black to move and win a piece. Which white piece guards the bishop?

Solved

Back-rank mate in two

A king behind its own unmoved pawns has no escape square. A rook or queen that reaches the back row then gives checkmate, unless a defender covers that row. In this puzzle you first deal with the defender, then mate on your second move.

White to move and checkmate in two moves.

Solved

Mating patterns

Some checkmates come up again and again. Once you know their shape, you spot them in your own games.

Smothered mate in two

A smothered mate is a knight's check against a king that is walled in by its own pieces. It often starts with a sacrifice that forces one more defender into the last free square next to the king.

White to move and checkmate in two moves.

Solved

The Arabian mate

One of the oldest known checkmates: a rook and a knight against a king in the corner. The rook checks next to the king, and the knight guards both the rook and the square the king would flee to.

This puzzle is for Black, so the board is turned with Black at the bottom.

Black to move and checkmate in one move.

Solved

Anastasia's mate in two

In Anastasia's mate a knight guards the squares next to a king on the edge, while a rook or queen mates along the edge. Here the edge is still closed. Giving up your queen can be worth it, if it forces the king into the mating net.

White to move and checkmate in two moves. A queen sacrifice is allowed.

Solved

The ladder mate

Two rooks mate a king on their own, without help from your king. One rook holds a row so the king cannot step back; the other checks on the next row, pushing the king one step toward the edge. Then they swap roles, like climbing a ladder.

White to move and checkmate in two moves with the two rooks.

Solved

Basic endgames

When most pieces have been traded, a single extra queen, rook or pawn decides the game, but only if you know how to finish it. On the first two boards the page moves the lone black king for you: mate it. Then play the position out against the computer at full strength: it defends as well as it can, so a win there means you have the technique. On the last board you move both sides.

0 of 2 mates done

King and queen against king

Use the queen to shrink the box the enemy king can move in, a knight's move away from it, until the king is stuck on the edge of the board. Then bring your own king close and give mate with the queen next to the enemy king, protected by your king.

Watch out for stalemate: when the enemy king is on the edge, always leave it a square to move to until the mating move.

White to move and mate the lone king. Drive it to the edge, then mate it with queen and king together.

Solved Practise against the computer

King and rook against king

The rook mates on the edge too, but it needs more help from the king. Cut the enemy king off along a row or column with the rook. Bring your king up until the two kings stand opposite each other with one square between them, then check along the edge.

When the enemy king attacks your rook, move the rook to the far side of its row or column, out of reach, and keep the cut-off line.

White to move and mate the lone king. Cut it off with the rook and push it back row by row.

Solved Practise against the computer

King and pawn against king

A lone pawn only becomes a queen when its king clears the way. The key idea is the opposition: two kings facing each other with one square between them. The side that does not have to move holds the opposition, and the other king must step aside.

With your king in front of the pawn you can win, and a spare pawn move hands the obligation to move back to the defender. With the king behind the pawn, the defending king can usually block it and draw.

White to move and win. The kings are in opposition, and it is your move.

Using Gunnie's Gambit

Play the computer

Choose Play at the top. Pick your colour under I play and a level under Opponent. Beginner and Novice make mistakes on purpose, the Elo levels play at about 1400 to 2400, and Full strength is the engine at its best. Move by tapping a piece and then a square, or type the move under Type a move, such as e4 or Nf3 (see Reading and writing moves).

Hints and engine help

Stuck? Show hint gives the best move in the position. Under Engine help you can switch on Show evaluation, which tells you who is better and by how much, and Show best move. Both are off at the start, so you can play on your own.

Analyse a position

Choose Analyse to enter moves for both sides and see the best move, the evaluation and the top three lines, with arrows on the board. Paste a game under Position & PGN to carry on from it.

Review your game

When a game ends, choose Review game. The engine checks every move and marks inaccuracies (?!), mistakes (?) and blunders (??), with the better move as an arrow. Step through with the arrow keys or jump to the next mistake.

Keyboard

Every square is a button. Tab to the board, move between squares with the arrow keys, and press Enter or Space to pick up a piece and put it down.

Where to start

  1. Try every practice board on this page until the moves feel familiar.
  2. Play the Beginner level as White, and ask for a hint whenever you are stuck.
  3. When the game ends, choose Review game and look at your blunders first.
  4. Move up a level once you win most of your games.

Play your first game