Chess AI Unblocked

A chess engine you can see thinking, with a score bar, search stats and an optional hint.

Chess AI is a full game of chess where you play White against a computer that thinks in plain sight, and you can play Chess AI unblocked in any modern browser. After each reply it reports how many positions it looked at and the seconds it needed, while a colored bar leans toward the stronger side. That makes it a handy practice partner: you can see what the engine likes, change how deep it searches, and take moves back to try another idea.

How to Play Chess AI

Normal chess rules are in place, castling and en passant included. You command the white army and always go first. Grab a piece, pull it to a new square and let go. If that move is not allowed, the piece jumps home. With a mouse, resting the pointer on one of your pieces greys out every square it could reach, which is a quick way to check your options.

Black answers after a short pause. Your latest move is outlined in yellow and the engine’s reply in blue, which makes the last exchange easy to spot. The only rule twist is promotion, which always gives a queen.

A game ends with checkmate or a draw. The win goes to whoever delivers mate. Draws come from stalemate, the same position appearing three times, fifty moves with no capture or pawn move, or too few pieces left for either side to force mate.

Reading the Side Panels

The panels around the board tell you a lot:

  • Advantage gives the engine’s opinion of the position, as a number and as a bar that leans toward whoever is better.
  • Status warns you about check and explains why a game is over.
  • Search stats count the positions the engine checked, how many seconds it spent and its speed in positions per second.

The advantage number is easy to read once you know the scale. The engine values a pawn at 100, a knight at 280, a bishop at 320, a rook at 479 and a queen at 929. So a swing of about 300 usually means a minor piece changed hands, and a swing near 900 means a queen did.

How the Engine Decides

Under the hood it runs a minimax search sped up by alpha-beta pruning. In plain words, it imagines every move it could make, then every reply you could make, and so on, down to the depth you set. It assumes you will always pick your best reply.

To judge the positions at the end of that search, it adds up piece values plus small bonuses for pieces standing on strong squares, such as knights that stay off the edges and corners. It does not know long-term plans, so it can be tricked by threats that land just beyond its search depth.

Settings and Modes

Settings holds two depth menus, one for Black and one for White, each from 1 to 5. The White depth controls the hint and the Computer vs. Computer mode. That mode, found in its own panel, lets the program battle itself while you watch, and a Stop and Reset button ends it.

The Opening Positions panel jumps straight into three well-known openings: the Ruy Lopez, the Italian Game and the Sicilian Defense. In the first two, Black moves first from the loaded position. A Start Position button resets the board.

Undo always takes back a pair of moves, yours plus the engine’s answer, and Redo puts that pair back. Making a new move clears the redo history.

A Practice Plan

  1. Win at a low depth first. Collect several wins at depth 2 before raising the number. Each level is slower but much harder to fool.
  2. Watch for score jumps. A sudden swing in the Advantage number usually means a piece of yours is now hanging.
  3. Use hints sparingly. Ask for one only after you have a plan of your own, then compare the two.
  4. Study one opening at a time. Load the same line several times and see how the middle game unfolds.
  5. Rewind and compare. Undo a move, try a different plan, and see how the score reacts.
  6. Mind auto-promotion. Since a pawn always becomes a queen, check that a new queen will not leave Black with no legal moves and hand over a stalemate.

Mistakes New Players Make

  • Moving the queen out early. The engine loves to gain tempo by attacking it with minor pieces.
  • Ignoring the hover preview. If a piece shows no grey squares, it is pinned or blocked, so look for a different plan.
  • Playing too fast at depth 1. The weakest setting still grabs any piece you leave undefended.
  • Forgetting about draws. Repeating moves when you are ahead can end the game in a threefold repetition draw.

Devices and Who It Suits

On a Chromebook or laptop, dragging with a trackpad works well. On a phone, pieces can be dragged by touch, but on a slim screen the option menus sit on top of the board, so expect to scroll inside the frame. A short game at depth 2 fits in a lunch break, while a serious game at depth 4 or 5 can fill a full study period.

For more board and card games against a computer:

  • Checkers has fewer piece types, so it is easier to plan several captures ahead.
  • Universal Reversi is about flipping discs, and the lead can change hands in a single move.
  • Gomoku asks you to line up five stones, with a two-player option for playing a friend.

Quick facts

Devices
Best on computer, playable on tablet
Controls
Mouse, Touch
Players
1 player
Price
Free, no sign-up
  • chess
  • board game
  • strategy
  • computer opponent
  • single player

How to control Chess AI

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

Made by

Zhang Zeyu · originally “chess-ai (Simple Chess AI)”

Code license
MIT
Art & 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 AI questions

How do I make the computer weaker or stronger?

Open Settings and pick a search depth for Black. A value of 1 means it barely plans, and 5 means it checks far more replies before choosing. It starts at 3, and bigger numbers make you wait longer for each answer.

Can I underpromote a pawn?

No. Any pawn that reaches the far rank becomes a queen right away, whether it is yours or the computer's.

Where does the hint show up?

Tick the Show Suggested Move box in Settings. The board then outlines two squares in red, showing where the piece the engine recommends for you starts and where it should go.

Can I play Chess AI on a Chromebook?

Yes. It runs in the browser, and you move pieces by dragging with a trackpad or mouse. Depth 5 can take a while to answer on a slower Chromebook, so start at 3.

Does Chess AI save my game?

No. Nothing is stored between visits, so reloading the page or leaving it starts a new game from the opening position.

Can I play two players or choose Black?

You always play White against the engine. The only other mode is Computer vs. Computer, where the program plays both sides while you watch.

More board & card games

See all →