Chess

Mode
On this device
Online
Level
Play as

Your stats

Finish a game to see your stats here.

Your move

Computer (Medium)
You

Moves

No moves yet

Start a new game?

The game in progress will be cleared.

Draw

Options

How to play

Chess is played on a board of 64 squares. Each player starts with 16 pieces: a king, a queen, two rooks, two bishops, two knights and eight pawns. White moves first, then the players take turns, one move each.

The king moves one square in any direction. The queen moves any number of squares in a straight line or along a diagonal, the rook in a straight line and the bishop along a diagonal. The knight jumps in an L shape, two squares one way and one to the side, over anything in between. A pawn moves one square forward, or two from its starting square, and takes one square diagonally forward. A piece takes an opponent’s piece by moving onto its square.

Three special moves: castling moves the king two squares toward a rook, which jumps over to the king’s other side, when neither has moved, the squares between are empty and the king does not pass through check. En passant lets a pawn take an opponent’s pawn that has just moved two squares past it, as if it had moved one. A pawn that reaches the far side becomes a queen, rook, bishop or knight.

A king that is attacked is in check, and its player must get it out of check. When there is no way out, that is checkmate and the game is over. The game is a draw by stalemate (the player to move has no legal move but is not in check), when the same position comes up three times, after 50 moves each with no capture and no pawn move, when neither side has enough pieces left to checkmate, or when both players agree.

Playing here

Tap or click a piece, then the square to move it to, or drag it there. The squares it can reach are dotted, and the pieces it can take are ringed. With a keyboard, the arrow keys move between squares, Enter or Space picks up a piece and puts it down, and Escape puts it back. While the other side is thinking you can queue a move: it is played as soon as your turn comes, if it is still legal. A right click or Escape clears it.

Play the computer on Easy, Medium, Hard or Expert as White, Black or a random color, pass one device back and forth with a friend, or create a room and send the link to play a friend online. Online games can have a clock: each player has their own time, the clocks start once both players have moved, and a player who runs out of time loses, unless the other has too few pieces to checkmate, which makes it a draw. Online you can also offer a draw.

Click a move in the list to see the board as it was, or step through the game with the buttons under the list. While the list or its buttons have the focus, the Left and Right arrow keys step back and forward and Home and End jump to the start and the end. Any press on the board takes you back to the live game. Against the computer, Takeback undoes your last move and the computer’s reply. Moves make a short sound; the speaker button beside Flip board turns it off or on, and this browser remembers it.

Tips

  • Bring out your knights and bishops early, and castle to keep your king safe.
  • Fight for the four squares in the middle of the board.
  • Before each move, check what your opponent’s last move attacks.
  • Points help you count trades: pawn 1, knight and bishop 3, rook 5, queen 9.

The computer player is Stockfish (GPL-3.0), source, a separate program that runs in your browser.