Chess

Move your six kinds of pieces to trap your opponent’s king. Leave it no escape – checkmate – and you win.

Choose your settings and press Start

Opponent
CPU level
Your pieces

White always moves first in chess. Your pieces are shown at the bottom of the screen.

Undo (take back a move)
Report a bug

Only the site operators can read your report. It will not appear in public comments.

Do not include your name, school, address, contact details, or links. The game version and browser type are attached automatically. Privacy

ver 1.0.0 · Updated

Release notes
  1. · ver 1.0.0Added the version label and release notes.
  2. Added the English version.
  3. First published.

How to play chess

Chess is a game for two players on a board of 8 by 8 squares. One player has the white pieces and the other the black pieces, and they take turns moving one piece at a time. There are six kinds of pieces, and each moves in its own way. You capture an opposing piece by moving onto its square. The goal is to attack your opponent’s king so that it cannot escape. That is called checkmate, and it wins the game.

Chess has a reputation for being hard, but you only need a handful of rules to play a real game. This page explains them in order, with a picture for each: the setup, how every piece moves, check and checkmate, the three special moves, and the ways a game can be drawn. If you are brand new, turn on the move and threat markers in the settings above; the board will then show where a piece can go and which of your pieces are under attack.

The chessboard and how to set up the pieces

A chessboard with the 16 white pieces on the two rows nearest to White and the 16 black pieces on the far two rows; the back row from left to right is rook, knight, bishop, queen, king, bishop, knight, rook, with eight pawns in front
Each side puts 16 pieces on the two rows nearest to them. White moves first.

Place the board so that each player has a light square in the bottom-right corner (“light on the right”). On your back row, set up the pieces from left to right: rook, knight, bishop, queen, king, bishop, knight, rook. Put your eight pawns on the row in front of them. A handy way to remember where the queen goes is “the queen goes on her own color”: the white queen starts on a light square, the black queen on a dark one, and the kings face each other.

White always moves first, and then the players alternate. In this game you can choose to play White, Black or a random color, and the board is turned so that your pieces are always at the bottom.

How the chess pieces move

Blue dots along the rank and file of a rook and green dots along the diagonals of a bishop; a black pawn in the rook’s path has a red ring
Rooks move along ranks and files, bishops along diagonals, as far as the way is clear.

The rook moves any number of squares straight up, down, left or right. The bishop moves any number of squares diagonally, so it always stays on the same color. The queen combines the two: she can move any distance in a straight line or along a diagonal, which makes her the most powerful piece. None of these pieces can jump over another piece. If an opposing piece stands in the way, you can capture it by moving onto its square; you can never move onto a square occupied by one of your own pieces.

Eight dots in an L pattern around a knight, dots on the eight squares around a king, and a pawn with arrows two squares forward and diagonally forward to capture a black pawn
The knight jumps in an L, the king steps one square, and the pawn moves forward but captures diagonally.

The knight moves in an L shape: two squares in one direction and then one square to the side. It is the only piece that can jump over other pieces. The king moves one square in any direction. The pawn is the odd one out: it moves straight forward one square, or two squares on its very first move if both squares are empty, but it captures one square diagonally forward. A pawn blocked by a piece directly in front of it cannot move, and pawns never move backward.

Check and checkmate

A white rook moves from a1 to a8 and attacks the black king on g8; three black pawns in front of the king block its escape and f8 and h8 are marked with crosses
When the king is attacked and has no way out, it is checkmate.

When a piece attacks the enemy king, the king is in check. A player in check must get out of it on the very next move, in one of three ways: move the king to a safe square, capture the attacking piece, or put a piece in between to block the attack. If none of these is possible, it is checkmate and the game is over. The king is never actually captured.

You are also never allowed to make a move that puts or leaves your own king in check. That means you cannot move your king next to the enemy king or onto an attacked square, and a piece that is shielding your king from an attack (a pinned piece) cannot step out of the way. In this game, if you click a piece that cannot move for this reason, a message tells you why.

Special moves: castling, en passant and promotion

Castling

The white king moves two squares from e1 to g1 and the rook on h1 jumps over it to f1; arrows also show castling on the other side toward c1
Castling moves the king and a rook in a single move.

Castling is the only move in which two pieces move at once. The king moves two squares toward one of its rooks, and that rook jumps over the king to the square right next to it. Castling on the king’s side is called kingside or short castling; on the queen’s side it is queenside or long castling. You may castle only if all of these are true: neither the king nor that rook has moved yet in the game; the squares between them are empty; your king is not in check right now; and the king does not pass through or land on a square attacked by the opponent. It is fine if only the rook passes an attacked square (b1 when castling queenside).

En passant

A black pawn moves two squares from d7 to d5, and the white pawn on e5 moves diagonally to d6 and captures the pawn on d5
En passant lets a pawn capture an enemy pawn that just moved two squares past it.

En passant (French for “in passing”) is a special pawn capture. If an enemy pawn moves two squares forward from its starting square and lands right beside your pawn, your pawn may capture it as if it had moved only one square: you move diagonally onto the square it passed over, and the enemy pawn is removed. You can do this only on the very next move; if you play something else, the chance is gone.

Pawn promotion

A white pawn moves from e7 to e8, with the four promotion choices shown below: queen, rook, bishop and knight
A pawn that reaches the last rank becomes a queen, rook, bishop or knight.

When a pawn reaches the far end of the board, it must immediately be exchanged for a queen, rook, bishop or knight of the same color. You can choose any of them, even if you still have that piece, so it is possible to have two or more queens. Almost everyone chooses a queen, but promoting to a knight is sometimes stronger when it gives an immediate check. In this game a small window pops up so that you can pick the piece.

How a chess game can end in a draw

The black king on a8 has its three neighboring squares a7, b7 and b8 all covered by the white queen; it is Black’s turn but there is no legal move
No legal move and not in check: stalemate, which is a draw.

If it is your turn, you are not in check, and you have no legal move at all, the game is a stalemate and ends in a draw. This catches many beginners: you can be far ahead and still only draw if you take away every square from the enemy king without giving check. This game also declares a draw in these cases:

DrawWhat it means
StalemateThe player to move has no legal move and is not in check
Not enough materialNeither side can possibly checkmate, for example king against king, or king and one bishop or knight against a king
Threefold repetitionThe same position, with the same player to move and the same castling and en passant rights, occurs for the third time (not necessarily in a row)
50-move rule50 moves by each player without any pawn move or capture

In official tournaments, a player has to claim a draw by repetition or by the 50-move rule. Here the game ends in a draw automatically as soon as it happens.

Chess piece values

To decide whether a trade is good, players give each piece a rough point value. The name tags above the board show the pieces you have captured and your lead in points (such as +3).

PieceMovesValue
PawnForward 1 (2 at first); captures diagonally1
KnightL-shape; can jump3
BishopDiagonally, any distance3
RookStraight, any distance5
QueenStraight or diagonal, any distance9
King1 square; must never be captured–

Chess strategy for beginners

1. Before every move, ask “can it be taken?”

At the beginning, most games are lost by simply leaving pieces where they can be captured for free. Before you move, check whether any enemy piece can reach the destination square. With “Mark my pieces that are under attack” turned on, your pieces that can be captured get a red dashed ring.

2. Control the center

Pieces in the middle of the board (d4, e4, d5, e5) reach more squares and are more useful. A classic way to start is to move a pawn to e4 or d4 to claim space in the center.

3. Develop your knights and bishops early

Rather than moving the same piece again and again, bring a new piece into play with each move in the opening. Getting the knights and bishops out also clears the way for castling. Bringing the queen out too early usually lets your opponent chase her around and gain time.

4. Castle to keep your king safe

A king left in the center is easy to attack along open lines. Castle early to tuck it into a corner, and avoid moving the pawns in front of it without a good reason.

5. When you capture, check the recapture

Taking a defended piece with a more valuable one loses material: grabbing a pawn with your queen is a disaster if the queen is then taken. Before you capture, look at what can capture back.

6. When you are ahead, push the king to the edge

With extra pieces, drive the enemy king toward the edge of the board and bring your own king closer to help. Be careful not to take away all its squares without giving check, or you will stalemate. Always leave it one square until you can deliver mate.

Chess FAQ

Who moves first in chess?

White always moves first. Here you can choose White (first), Black (second) or Random under “Your pieces”. If you choose Black, the board is turned so that your black pieces are at the bottom.

Why can’t I castle?

One of these is the reason: the king or that rook has already moved, there is a piece between them, you are in check, or the king would pass through or land on an attacked square. When castling is possible, a dot appears two squares to the side of the king after you select it.

What happens if I ignore a check?

You can’t. A move that leaves your king in check, or puts it in check, is illegal. This game simply doesn’t allow such moves, and tells you why when you pick a piece that cannot help.

Which CPU level should I choose?

If you are just starting, choose Easy. It often leaves pieces where you can take them and misses checkmate threats. Once you are comfortable, try Normal: it usually takes free pieces and rescues attacked ones, but still slips up now and then. Hard looks several moves ahead and punishes loose pieces quickly. Even so it occasionally overlooks something, so if you watch the threat markers and never give away pieces for free, you can beat it.

Can I undo a move or get a hint?

Yes. With Undo on, the Undo button takes back your move (together with the CPU’s reply). The Hint button shows a well-considered move with a blue arrow. The number of hints and undos you used is shown at the end of the game.

Can two people play, and can I see the moves?

Choose “A friend” to take turns on one screen, with White at the bottom. Turn on “Show the move list” to see every move written in algebraic notation, such as e4 or Nf3: K is the king, Q the queen, R a rook, B a bishop, N a knight, and pawn moves have no letter. An x means a capture, + means check, # means checkmate, and O-O is castling. If you close the page mid-game, press Continue later in the same browser to pick up where you left off.

History of chess

Chess is usually traced back to chaturanga, a game played in India around the sixth century. It traveled through Persia and the Arab world to Europe, and around the fifteenth century the queen and bishop gained their long-range moves, giving the game its modern form. Japanese shogi and Chinese xiangqi are relatives descended from the same ancestor. Today the international chess federation, FIDE, maintains one set of rules used all over the world, and chess is played by millions of people online every day.