Chess vs Computer lets you play White against a small chess engine written by Zhang Zeyu. You move, the engine thinks, and Black replies, with checkmate as the goal. What makes it useful for learning is how openly it works: it shows its search depth, how many positions it checked, and a live bar that scores the position after every move. You can set the engine from a gentle depth 1 to a careful depth 5.

Making moves

Standard chess rules apply, including castling, en passant, check and checkmate. Drag a piece to a square and release it. Illegal moves snap back. With a mouse, hovering over a piece shades its legal squares.

Your last move is outlined in yellow and the engine’s reply in blue. The Status line reports check and how a game ends: checkmate, stalemate, threefold repetition, the 50-move rule or too little material to mate. Undo takes back your move and the reply together, and Redo steps forward again.

Chess vs Computer Controls

Controls for Chess vs Computer
ActionMouseTouch
Move a pieceDrag the piece to its new squareDrag the piece to its new square
Preview legal movesHover over one of your pieces—
Take back your last move and the replyClick "Undo"Tap "Undo"
Replay moves you took backClick "Redo"Tap "Redo"
Change engine depth or turn on hintsOpen "Settings" and pick a value or tick the boxOpen "Settings" and pick a value or tick the box
Load an opening or restartOpen "Opening Positions" and click a buttonOpen "Opening Positions" and tap a button

How the engine thinks

The engine uses minimax search with alpha-beta pruning. Minimax means it imagines its move, then your best answer, then its best answer to that, and so on, down to the chosen depth. It picks the move that leaves it best off if you play perfectly. Alpha-beta pruning skips lines that cannot change the result, which saves time. Each extra level of depth multiplies the work, which is why depth 5 is slow.

Learning plan

  1. Win at a low depth first. Beat depth 2 a few times before moving to 3 or 4.
  2. Watch the score after each move. A sudden drop usually means a hanging piece.
  3. Use the suggested move. Tick the hint box in Settings to see the engine’s choice for White outlined in red, then decide if you agree.
  4. Study openings. Buttons drop you into the Ruy Lopez, Italian Game or Sicilian Defense.
  5. Replay with Undo. Try a new idea from the same spot and compare the score.

Setup and Device Notes

On a narrow screen the menus stack above the board, so scroll inside the game frame to reach it. Dragging works with a finger. For a chess relative with a twist, try Shogi or Xiangqi. For something lighter, play Checkers.

Tested and updated: