Play Chess Against the Computer
Play chess against the computer whenever you like: choose your colour and level and play against a chess engine that runs right in your browser. Your game survives a page reload.
Source: FIDE Laws of Chess (effective 1 Jan 2023): piece movement, checkmate, stalemate, draw rules. Updated: .
How it is calculated
Play chess against the computer
Here you play against a chess engine that runs entirely in your browser – no account, no waiting for an opponent. Choose White, Black or random, and one of eight levels.
How it works
- Tap a piece: its legal target squares are marked (dot = move, ring = capture).
- Tap the target square – the computer answers after a short think.
- “Take back” undoes your last move and the reply, “Hint” shows a good move, “Flip board” switches the view.
The eight levels
| Level | Thinking time | Search depth | For whom? |
|---|---|---|---|
| 1–2 | up to 0.1 s | 1–2 plies | beginners, children |
| 3–4 | up to 0.25 s | 3–5 plies | casual players |
| 5–6 | up to 0.6 s | 8–12 plies | club players |
| 7–8 | up to 1.5 s | 16 or unlimited | very strong players |
The level sets the engine’s “Skill Level” option (0 to 20), the thinking time and the search depth. On the lower levels the computer deliberately makes mistakes. We deliberately do not quote an Elo rating – strength also depends on your device.
Rules at a glance
- All rules follow the FIDE Laws of Chess: castling, en passant, pawn promotion (piece selectable above, default queen).
- Draw by stalemate, threefold repetition, 50 moves without a pawn move or capture, and insufficient material to mate. Under FIDE rules repetition and the 50-move rule must be claimed – here, as is usual online, the draw is declared automatically.
The technology
The rules (legal moves, check, mate) are checked by the page’s own code, tested against the standard perft values of the Chess Programming Wiki (e.g. 8,902 positions after three plies from the starting position). The computer’s moves come from Stockfish, one of the strongest free chess engines, in its small “lite” build (approx. 1.8 MB). It runs as a separate program in a Web Worker and only exchanges text commands with the page. Stockfish is licensed under the GNU GPL v3; the licence and complete source code are hosted on this website.
Privacy
Your game, settings and statistics (wins, draws, losses) live only in your browser’s localStorage. The engine is loaded from this website with the computer’s first move; nothing is sent to a server.
Related: Chess clock for games on a real board, and Sudoku.
Share a position, FEN and PGN
“Share position” creates a link to the current position. Whoever opens it gets the puzzle “find the best move” and, after moving, sees what the engine would have played on its highest level – then the game continues against the computer. Under “Position and notation” you find the position as FEN and the game as PGN: copy either one, or save the game as a .pgn file. You can also paste a FEN or a PGN game and play on from there; every move is checked against the rules. On a computer you can drag pieces with the mouse, on a phone you tap the piece and then the target square.
Frequently asked questions
Can I play chess against the computer free without signing up?
Yes. The engine runs in your browser, with no account and no download. Your game survives a page reload.
How strong is the computer?
You decide: level 1 makes many mistakes and suits beginners, level 8 plays very strongly. In between, thinking time, search depth and accuracy increase step by step.
Which level is easy for beginners?
Start with level 1 or 2. Once you win there regularly, go up a level. “Hint” shows you a good move at any time.
Can I take back a move?
Yes, with “Take back” – the computer’s reply is taken back too, so it is your move again.
When is a game drawn?
By stalemate, when the same position occurs three times, after 50 moves by each side without a pawn move or capture, and when neither side can mate any more, such as king versus king.
Which engine is behind it?
Stockfish 19 in its small “lite” build, a free engine under the GNU GPL v3. It runs separately from the rest of the page; licence and source code are linked below the board.
Sources and legal basis
- FIDE Laws of Chess (effective 1 Jan 2023): piece movement, checkmate, stalemate, draw rules
- Chess Programming Wiki – Perft Results (reference values for the move generator)
- Stockfish – Open-Source-Schachengine (GPL-3.0)
- Stockfish.js 19 – WebAssembly-Fassung (GPL-3.0)
- Engine: license, source code and checksums (GPL-3.0)
- GNU General Public License v3 (Volltext)
As of: · Editorial policy
Related tools
- Chess clock onlineFree online chess clock for your phone: two big tap halves, Fischer increment or delay, presets from 3+2 blitz to 90+30, move counter, pause and alarm.
- Play sudoku online – daily puzzle and solverPlay sudoku online free: a new daily sudoku every day plus 4 levels, notes, mistake check and hints. The solver explains every step. Printable grid.
- Play Solitaire OnlineFree Klondike solitaire in your browser: draw 1 or 3, unlimited undo, hints and a winnable daily deal. Share your time – the link deals the same cards.
- Play FreeCell Solitaire OnlineFreeCell free in your browser: numbered deals 1 to 32,000, daily deal, hints and undo. Share your result – the link opens the same deal. No sign-up.
- Play Four in a Row OnlinePlay Four in a Row free in your browser: against the computer on three levels or two players on one device, with a saved score. No sign-up, no app.
- Play tic tac toe onlineTic tac toe online: play the computer (easy, medium, unbeatable), a friend on one device or by link. 3×3, 4×4 and 5×5 boards with score – free, no sign-up.
- Snake game onlinePlay the snake game online free: classic snake in your browser, no download or sign-up. Arrow keys, WASD or swipe on mobile – eat, grow, beat your high score.
- Volleyball scoreboard onlineVolleyball scoreboard online and free: tap to add a point, sets end automatically at 25 (deciding set at 15) with a two-point lead. Shows who serves next.
- Word ladder game onlinePlay the word ladder game online for free: change one letter at a time to reach the goal word, with three levels, hints, a solution and a puzzle series.