Play Chess

A complete game of chess that follows every official rule, from castling and en passant to pawn promotion, stalemate and the 50-move rule. Practise against a computer that thinks at three strengths, share one phone or laptop with a friend, or send an invite code and play live across the internet. Click or drag pieces, and legal squares light up as you go.

Play against the computer

Chess against Easy, Medium or Hard computer players.

Computer level
Player 1 / host plays

How to play

  1. 1

    White moves first and the two sides alternate. Pick a piece by clicking or tapping it, then click a highlighted square, or simply drag the piece there. Dots mark empty squares you can reach and rings mark pieces you can capture.

  2. 2

    Every standard rule is enforced: castle by moving your king two squares toward a rook, capture en passant right after a pawn's double step, and choose a queen, rook, bishop or knight when a pawn reaches the last rank. Moves that leave your own king in check are never offered.

  3. 3

    Checkmate wins the game. The game is drawn by stalemate, threefold repetition, the 50-move rule, insufficient mating material or an accepted draw offer. You can offer a draw once per turn or resign at any time on your move.

  4. 4

    vs Computer lets you choose Easy, Medium or Hard and pick White, Black or a random colour. Easy makes beginner mistakes, Medium looks a few moves ahead, and Hard searches deeper for about a second per move.

  5. 5

    Pass and play is for two people on one device. The board turns to face whoever is to move, and the Flip board button lets you choose a fixed view instead.

  6. 6

    Online creates a room with a 6-character session code and an invite link. Your friend joins with the code, the host picks the colours, and if a seat is empty or a player drops out the computer plays that side. Each online turn has a two-minute limit.

Chess strategy for improving players

Most games between new players are decided by loose pieces, not deep plans. Before every move, ask two questions: what does my opponent's last move attack, and after my move, is every one of my pieces defended or safe? Checking captures and checks for both sides takes only a few seconds and will save more games than any opening you memorise. The Easy computer leaves pieces hanging on purpose, so it is a good place to practise spotting them.

In the opening, aim for three simple goals: put a pawn in the centre, develop your knights and bishops toward the middle, and castle early so your king is tucked away behind pawns. Avoid moving the same piece twice or bringing the queen out early, because opponents gain time by chasing it. Connect your rooks by clearing the back rank, then look for open files where they can become active.

In the middlegame, improve your worst piece. A bishop blocked by its own pawns or a knight stuck on the edge of the board is doing little, so find it a better square before launching an attack. Trade pieces when you are ahead in material, since a single extra pawn becomes decisive with fewer pieces left, and keep pieces on the board when you are behind and need complications.

Endgames reward an active king. Once the queens are gone, march your king toward the centre and the pawns. Passed pawns, which no enemy pawn can stop, must be pushed, and rooks belong behind passed pawns. Learn the basic checkmates with king and queen and with king and rook against a lone king, and watch for stalemate: always make sure the defending king has a legal move until you deliver mate.

Frequently asked questions

Does this chess game follow all the official rules?+

Yes. Castling checks that the king and rook have not moved, the squares between are empty and the king does not pass through or land in check. En passant, all four promotion choices, checkmate, stalemate, threefold repetition, the 50-move rule and insufficient material are all handled automatically.

How strong is the computer?+

Easy plays quickly with a very short look ahead and sometimes makes careless moves, which suits beginners. Medium searches several moves deep in about a third of a second. Hard thinks for roughly a second per move with a deeper search and will punish most tactical mistakes.

Can I offer a draw or resign?+

Yes. On your turn, Offer draw asks your opponent to accept or decline, and you can offer once per turn. The computer only accepts when its own position is clearly worse. Resign ends the game immediately after you confirm it.

How do I play chess with a friend online?+

Choose Online, create a room and share the 6-character session code or invite link. Your friend joins from their own browser and the host starts the game. If someone leaves, the computer takes over their side so the game can still finish.

Is my online game private?+

Players connect directly browser to browser. The host's browser runs the game and only the board position is shared with the other player. Nothing about your game is stored on our servers, and no account or sign-up is needed.

Can I play on my phone or tablet?+

Yes. The board resizes to fit small screens and you can tap a piece and then its destination or drag it with your finger. The full screen button gives the board more room on phones.

What do the move list symbols mean?+

Moves are shown in standard algebraic notation. K, Q, R, B and N are the king, queen, rook, bishop and knight, pawn moves show just the square, x means a capture, + is check, # is checkmate, O-O is kingside castling and =Q shows a promotion.

More games

Browse all games or open a shared code workspace.