Chess is a strategy game for two players on a board of 64 squares, where each side commands 16 pieces and tries to checkmate the other king. Every rule is built in here, from castling to the fifty-move draw, so you can face a computer at four strengths or a friend sitting beside you.
How each chess piece moves
White starts with its pieces on the two rows nearest it, Black on the far two, and White always moves first. The players then take turns, one move each. A piece captures by moving onto a square held by an enemy piece, which leaves the board. Each piece moves its own way:
- The king steps one square in any direction. It's the piece you must protect.
- The queen moves any distance along a row, column, or diagonal, which makes it the strongest piece.
- A rook moves any distance along a row or column.
- A bishop moves any distance diagonally, so it stays on one color all game.
- A knight jumps in an L shape, two squares one way and one to the side, and is the only piece that leaps over others.
- A pawn moves one square straight ahead, or two from its starting square, and captures one square diagonally forward.
The move list records the game in standard algebraic notation. 1. e4 e5 2. Nf3 means each side pushed its king's pawn two squares and White then brought a knight to f3, with + marking check and # marking checkmate.
Castling, en passant, and promotion
Three special moves trip up new players, and the board only offers them when they're legal:
- Castling moves the king two squares toward a rook, and the rook hops to the square the king crossed. Neither piece may have moved yet, the squares between them must be empty, and the king can't be in check, pass through an attacked square, or land on one. To castle here, move the king two squares.
- En passant: when a pawn moves two squares and lands beside an enemy pawn, that pawn may capture it as if it had moved one square, but only on the very next move.
- Promotion: a pawn that reaches the far side becomes a queen, rook, bishop, or knight. A menu asks which one you want, and most players pick a queen.
Check, checkmate, and draws
A king under attack is in check, and you must get out of it at once by moving the king, blocking the attack, or capturing the attacker. If there's no way out, it's checkmate and the game is over. You can never make a move that leaves your own king in check, so the board simply won't offer one. A red glow marks a king in check, and the last move stays highlighted.
A game can also end in a draw, declared automatically in four cases:
- Stalemate: the player to move has no legal move but isn't in check.
- Neither side has enough pieces left to checkmate, such as king against king and bishop.
- The same position comes up three times.
- Fifty moves each go by without a capture or a pawn move.
In tournament chess under FIDE rules, a player has to claim the last two draws; here the game ends for you.
Four computer levels, from Beginner to Hard
The engine has four strengths under Level:
- Beginner plays a random move about three times in ten. Otherwise it looks only at its own move and the captures that could follow, with plenty of randomness on top. It leaves pieces hanging, so new players can win.
- Easy plays a random move about one time in twelve. Otherwise it looks at its move and your reply, plus any captures, and adds a little randomness.
- Medium never plays at random. It looks three moves deep, its move, your reply, and its next move, so it punishes loose pieces.
- Hard searches as far ahead as it can in about 1.2 seconds, with no randomness, and stops early when it finds a forced checkmate.
Easy, Medium, and Hard open with a short book of well-known lines, such as the Ruy Lopez, the Sicilian, and the Queen's Gambit, picked at random so openings vary. Under You play, choose White to move first, Black to let the computer open, or Random; with Black, the board turns so your pieces sit at the bottom. Each level keeps its own scoreboard.
Two player chess: White at the bottom, Flip when you like
Set Opponent to 2 players and the board starts with White at the bottom. Facing each other, or passing a phone back and forth, press Flip (or F) after each move so whoever is on move sees the board from their own side; the file letters and rank numbers turn with it.
Hint works for either player, which helps when a stronger player is coaching a beginner, and Undo takes back one move at a time. The scoreboard counts wins for White and Black, not for people, so when you swap colors, remember who was who. There's no online play; you share this one screen.
First habits, quick traps, and starting a child
Two checks save most of the pieces new players give away. Before every move, ask what your opponent's last move threatens, and count before you capture: a pawn is worth about 1, a knight or bishop 3, a rook 5, and a queen 9.
Watch for the quickest traps, too. Fool's mate ends the game after two moves each (1. f3 e5 2. g4 Qh4#), and Scholar's mate hits the weak f7 square with queen and bishop by move four.
With a child, start on Beginner, which leaves pieces hanging often enough for them to win, show a good move with Hint when they're stuck, and let them take back a blunder with Undo. A child who finds six kinds of piece too much at first can start with checkers, played on the same 8×8 board.
Moving pieces by tap, drag, or keyboard
Tap a piece and then its square, or drag it there with a finger or a mouse. Dots mark legal squares, rings mark captures, and a pawn that promotes opens a small menu: Queen, Rook, Bishop, or Knight.
With a keyboard, the arrow keys move around the board and Enter picks a piece up and puts it down. Esc cancels, H asks for a hint, U takes back a move, F flips the board, and N starts a new game.
Whether chess is unblocked on a school or office network depends on that network's own rules. The game is a plain web page with no plug-in or app to install, so it loads wherever ordinary websites do. Once it has loaded, the engine searches inside your browser, normally in a background worker, so your moves aren't sent to a server for it to answer.
From chaturanga to Deep Blue
Chess grew out of chaturanga, played in India by about the 6th century. It spread to Persia as shatranj, then through the Islamic world to Europe. The queen and bishop gained their long-range moves in Europe in the late 1400s. To tell it apart from relatives like xiangqi and shogi, it's sometimes called international or Western chess.
In 1997, IBM's Deep Blue beat world champion Garry Kasparov in a six-game match. The numbers grow fast: White has 20 possible first moves, there are 400 positions after one move each, and 197,281 ways the first two moves for each side can go.
More two-player classics here include backgammon and Gomoku.
Your chess game, saved move by move in this browser
Close the tab mid-game and the position comes back move for move, with the board still turned the way you left it. This browser's local storage holds your mode, level, and side, a scoreboard for each of the four levels plus one for two players, and the game in progress. Reset scores empties only the scoreboard on screen. Every level is free to play with no account. Your games and scores live in that storage and aren't uploaded to a server, and the privacy policy describes the chess entry along with the rest.