Chess

Play against the computer on easy, medium or hard, or with a friend on the same device. Your game is saved in this browser, so you can come back to it later.

You play
White
Move
1
Wins
0
Mode
Level
Play as
Your move

Click a piece, then a square, or drag it · Dots show the legal moves · Your game is saved automatically

How to play

Pick a level and a colour and press New game. White always moves first. To move, click or tap one of your pieces and then a highlighted square, or drag the piece there. Dots mark the empty squares it can move to, and rings mark pieces it can capture. When a pawn reaches the last rank you choose what it becomes.

The rules in brief

About the computer

The computer opponent is a small chess engine written for this page. It runs in a background thread in your browser, so nothing is sent anywhere. It looks ahead with an alpha-beta search, checks captures until the position is quiet, and judges positions by material and piece placement. On Easy it looks only one move ahead, makes deliberate mistakes and sometimes plays a random move, which suits beginners. Medium looks three moves ahead with a little randomness and plays like a casual club player. Hard thinks for about two seconds a move, usually 5 to 7 moves deep, and punishes loose pieces. It plays a few well-known openings for variety. Your wins against each level are counted in this browser.

Tips for beginners