Skip to the game
Tic Tac Toe

Chess

Checkmate a computer that ranges from a forgiving Beginner to a Hard engine, or play chess with a friend on one screen, with hints and a full move list.

Play Chess

You
0
Draws
0
Computer
0

Loading the game…

Tap a piece, then the square to move it to, or drag it there. With a keyboard, move around the board with the arrow keys and press Enter to pick up and put down. Esc cancels, H shows a hint, U takes back a move, F flips the board, and N starts a new game.

Moves

    No moves yet.

    Game settings
    Changing a setting starts a new game. Each level keeps its own score.
    Opponent
    Level
    You play

    How it works

    How to play chess

    Move one piece per turn, get out of every check, and trap the enemy king so it has no escape square left.

    1. Step 01

      Pick a piece

      Tap one of your pieces, or drag it. Dots show where it can go, and rings show what it can capture.
    2. Step 02

      Make your move

      Each piece moves its own way. White moves first, then the players take turns, one move each.
    3. Step 03

      Checkmate the king

      Attack the enemy king so it has no way to escape. That's checkmate, and it wins the game.

    Features

    Chess with every rule, four levels, and a move list

    • Four computer levels

      Beginner and Easy slip in random moves; Medium looks three moves deep, and Hard searches as far as it can in about 1.2 seconds.

    • Flip the board for a friend

      Share one phone, tablet, or computer with a second player, and turn the board with Flip whenever it suits you.

    • Every rule of chess

      Castling, en passant, promotion, check, checkmate, stalemate, and automatic draws.

    • Dots for moves, rings for captures

      Pick a piece and dots mark every square it can reach, with rings on the pieces it can capture.

    • A Hard-engine hint, and undo with no limit

      Ask the strongest level for a move, or take back as many of your moves as you like.

    • Move list and autosave

      Every move in standard notation, with your game and scores saved in this browser.

    Strategy

    Chess habits that stop you hanging pieces

    Most games between new players are decided by a piece left where it can be taken. These habits help the most.

    • Claim the center with pawns

      Open with a center pawn, like e4 or d4. Pieces in the middle of the board reach more squares.

    • Develop your pieces

      Bring out your knights and bishops early, before moving the same piece twice or bringing out the queen.

    • Castle early

      Castling tucks your king behind pawns and brings a rook toward the center. Try to castle within the first ten moves.

    • Check what's attacked

      Before every move, ask what your opponent's last move threatens, and whether your move leaves a piece unprotected.

    • Count before you capture

      A pawn is worth 1, a knight or bishop 3, a rook 5, and a queen 9. Trade only when you come out ahead.

    • Look for checks and captures

      Checks, captures, and threats force replies. Look at them first, for both sides, before quiet moves.

    About the game

    Chess: 64 squares, 32 pieces, and every rule built in

    The rules and special moves, the four computer levels, two players on one screen, tips for beginners, and where the game came from.

    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.

    FAQ

    Chess questions

    Quick answers about playing chess online: the rules, the computer levels, two players, and saving.

    Can I play chess against the computer?

    Yes. Choose Computer under Opponent, then Beginner, Easy, Medium, or Hard. Beginner and Easy sometimes play random moves, Medium looks three moves deep, and Hard searches as far as it can in about 1.2 seconds.

    Can I play chess with a friend?

    Yes. Choose 2 players and share one phone, tablet, or computer. Press Flip, or F, to turn the board toward whoever moves next.

    Who moves first in chess?

    White always moves first. Against the computer you can choose White, Black, or a random side.

    How do I castle, and why won't it let me?

    Move your king two squares toward the rook; the rook jumps over automatically. If no dot appears on that square, something rules it out: the king or that rook has moved, a piece stands between them, or the king is in check, would pass through an attacked square, or would land on one.

    How does a pawn promote?

    When your pawn reaches the last rank, a menu asks which piece it becomes: a queen, rook, bishop, or knight.

    What's the difference between checkmate and stalemate in chess?

    In both, the player to move has no legal move. If their king is in check, it's checkmate and they lose. If it isn't, it's stalemate and the game is a draw.

    Can I take back a move or get a hint?

    Yes. Undo takes back your last move, and against the computer its reply too, as many times as you like. Hint asks the Hard engine for a move, names it in notation, and highlights it for a couple of seconds.

    What does the +number beside the captured pieces mean?

    It's the material lead, counted with the usual values: pawn 1, knight and bishop 3, rook 5, queen 9. It's worked out from the pieces still on the board, so a promoted pawn counts at its new value.

    Can I finish a chess game later?

    Yes, in the same browser. The game resumes at the same move, with the board turned the way you left it. Changing a setting starts a new game in its place, so finish the old one first.