About Chess vs Computer
You drag a piece, let go, and a moment later Black answers on its own. Chess vs Computer pits you, always as White, against a small JavaScript engine that looks ahead using a minimax search. Normal chess rules apply, castling and en passant included, and the game ends on checkmate, stalemate or one of the standard draw rules. Illegal moves simply snap back.
Under Settings you choose how deep the engine searches, from 1 up to 5 moves ahead, which turns it from a pushover into a careful opponent. An Advantage bar shows who is winning after every move, and you can turn on a suggested move, undo and redo turns, or jump straight into a few famous openings to practice them. It is a handy way to sharpen your game between classes.
How to play Chess vs Computer
- Drag one of your white pieces to a legal square; illegal moves snap back.
- Wait for the computer to reply as Black, shown with a blue outline.
- Follow the Advantage bar to see who is ahead, and read the Status line for checks and game results.
- Open Settings to change the engine depth or show a suggested move for White.
- Use Undo to take back your move and the reply, or load an opening to start from a known position.
Chess vs Computer controls
| Input | Action |
|---|---|
| Drag a piece | Make a move |
| Hover a piece | Show its legal squares |
| Click / Tap Undo or Redo | Step back or forward through moves |
| Click / Tap Settings | Change engine depth or turn on hints |
| Click / Tap Opening Positions | Load an opening or restart |
How to play Chess vs Computer on PC and mobile
On PC, laptop or Chromebook
- Press Play on this page – the game loads right here, with nothing to download.
- Click Fullscreen under the game for the biggest view. Press Esc to exit.
- Click once inside the game so it receives your keyboard input.
- Controls: Drag a piece make a move; Hover a piece show its legal squares.
On phone or tablet
- Open this page in Chrome or Safari and tap Play.
- Turn your device to landscape – the game is designed for a wide screen.
- Touch controls: Click / Tap Undo or Redo to step back or forward through moves; Click / Tap Settings to change engine depth or turn on hints; Click / Tap Opening Positions to load an opening or restart.
- Tap Fullscreen to hide the browser bars.
Tips and tricks
- Win a few games at a low depth before raising it; each step up makes the engine slower but sharper.
- If the Advantage number swings hard after your move, look for a piece you left undefended.
- Treat the suggested move as advice, not orders, and decide whether you agree before playing it.
- Promotion here is always to a queen, so double-check for stalemate before pushing that last pawn.
Chess vs Computer FAQ
How hard is the computer?
Can I underpromote a pawn?
Can I play as Black?
Can I play Chess vs Computer for free?
Does Chess vs Computer work on Chromebook and mobile?
Who made Chess vs Computer?
Credits and license
- Original game
- chess-ai (Simple Chess AI)
- Made by
- Zhang Zeyu
- Source code
- github.com/zeyu2001/chess-ai
- Code license
- MIT
- Art and sound
- CC BY-SA 3.0 (chess piece images by Cburnett, Wikimedia Commons); chessboard.js, jQuery and Bootstrap are MIT; chess.js is BSD-2-Clause
Chess vs Computer runs from this site with small changes, which are listed in “What we changed”. The original license and credits are kept with the game files.