Home › Fun & Games › Play Chess vs Computer

Play Chess vs Computer

Play a full game of chess against the computer, from a gentle beginner level to a tough Stockfish opponent. Drag or click your pieces; every rule is enforced for you.

Last updated:

Your move

Engine: built-in

Moves will appear here.

Advertisement
Advertisement

How to use the Play Chess vs Computer

  1. Choose your colour and level. Pick White, Black or Random and a computer level from 1 (beginner) to 8 (maximum).
  2. Make a move by clicking a piece and then a highlighted square, or by dragging the piece. Dots show quiet moves and rings show captures.
  3. Wait for the reply. The computer answers in under a few seconds; the last move is highlighted on the board.
  4. Use Undo move or Flip board whenever you like. Undo takes back your move and the computer's reply.
  5. Save the game with Copy PGN or Download PGN, or paste a FEN and press Load FEN to practise any position.

Chess piece values and how the computer counts material

PieceSAN letterUsual valueMoves
Pawn(none)1One square forward (two from its starting square), captures diagonally
KnightN3An L-shape: two squares one way and one square sideways; can jump over pieces
BishopB3Any distance diagonally
RookR5Any distance along a rank or file
QueenQ9Any distance in a straight line or diagonally
KingK–One square in any direction; castles with a rook

The +N next to the captured pieces uses these classic values, so +3 means you are roughly a minor piece ahead. The built-in engine uses finer values in centipawns (pawn 100, knight 320, bishop 330, rook 500, queen 900), adds a bonus for the bishop pair, and scores where each piece stands with piece-square tables, so a knight in the centre is worth more than one on the rim.

Reading the move list (SAN)

Moves are written in Standard Algebraic Notation, the same format used in books, PGN files and tournament score sheets:

  • Nf3: a knight moves to f3. Pawn moves show only the square, for example e4.
  • Bxe5: a bishop captures on e5. A pawn capture starts with the file it came from, as in exd5.
  • Nbd2 or R1e2: when two identical pieces can reach the same square, the file or rank of the moving piece is added.
  • O-O and O-O-O: castling kingside and queenside.
  • e8=Q: pawn promotion. + marks check and # marks checkmate.

Five habits that win more games against the computer

  • Develop first. Bring out knights and bishops, castle early and connect your rooks before starting an attack.
  • Check every capture and check. Before each move, look at all checks, captures and threats for both sides. The computer never overlooks a hanging piece.
  • Trade when ahead. If you win material, exchange pieces (not pawns) to reach a simple winning endgame.
  • Use undo to learn. When you lose material, take the move back and find what you missed instead of just replaying.
  • Climb the levels. Move up a level once you win most games at your current one; each level searches deeper or makes fewer deliberate mistakes.

Special rules in brief

Castling is allowed only if neither the king nor that rook has moved, the squares between them are empty, and the king is not in check, does not pass through an attacked square and does not land in check. En passant: a pawn that advances two squares can be captured by an enemy pawn standing beside it, as if it had moved only one square, but only on the very next move. A position counts as repeated when the same pieces stand on the same squares with the same side to move and the same castling and en passant rights.

Frequently asked questions

Which chess engine does the computer use?

When you are online, the tool loads Stockfish 10, a free open-source engine, and limits its skill level, depth and thinking time according to the level you choose. If Stockfish can't load (for example offline or on a blocked network), a built-in JavaScript engine takes over automatically, using alpha-beta search, quiescence search and piece-square tables.

Which level should I choose?

Levels 1 and 2 make frequent mistakes and suit beginners and children. Levels 3 and 4 play like a casual club player. Levels 5 and 6 are challenging for most club players, and levels 7 and 8 are very strong, especially when Stockfish is active.

How do I castle, capture en passant or promote a pawn?

To castle, move your king two squares toward the rook and the rook jumps over automatically. En passant appears as a normal highlighted capture when it is allowed. When a pawn reaches the last rank, a menu lets you choose a queen, rook, bishop or knight.

Why did the game end in a draw?

The game is drawn automatically by stalemate (the side to move has no legal moves but is not in check), threefold repetition of the same position, the 50-move rule (50 moves by each side with no capture or pawn move), or insufficient material such as king and bishop against king.

What are PGN and FEN?

PGN (Portable Game Notation) records the moves of a whole game and can be opened in any chess program or website for analysis. FEN (Forsyth-Edwards Notation) describes a single position in one line, including whose turn it is, castling rights and the en passant square.

Can I set up my own position?

Yes. Paste a FEN string into the Position (FEN) box and press Load FEN. The game continues from that position with you playing the colour selected under Play as; if it is the computer's turn, it moves first.

Is my game saved or sent anywhere?

No. The game runs entirely in your browser. Only your settings (colour, level and engine) are remembered on this device. Copy or download the PGN if you want to keep a game.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Tic Tac ToePlay tic tac toe against an unbeatable AI or a friend.Sudoku OnlinePlay free Sudoku with 4 difficulty levels, notes, hints and a timer.MinesweeperPlay classic Minesweeper: 3 difficulties, flags, timer and a safe first click.SolitairePlay classic Klondike Solitaire with Draw 1 or Draw 3 and undo.Chess ClockTwo-player chess timer with blitz presets, increment and delay modes.Elo Rating CalculatorExpected score, rating change and new ratings for a game or a tournament with any K-factor.Spider SolitairePlay Spider Solitaire online with 1, 2 or 4 suits, hints, unlimited undo and a timer.Connect FourPlay Connect 4 online against the computer or a friend.Snake GamePlay classic Snake online with speeds, wall modes and high scores.Block Puzzle GameClassic falling blocks puzzle game with levels and high score.2048 GamePlay 2048 online with swipe controls, undo and best score.Word Guess GameGuess the hidden five-letter word in six tries. Unlimited games, stats and hard mode.HangmanClassic friendly hangman word game with categories, hints and difficulty levels.Memory Card GameFlip cards and match emoji pairs on 4×3 to 6×6 grids, with moves, timer and best scores.Flappy GameTap to flap a round chick through bamboo gaps and beat your high score.Dino Runner GameJump cacti and duck buzzing beetles in an original endless desert runner.Typing GameType the falling words before they land; level up and track your WPM and accuracy.Math Quiz GameTimed mental math rounds with four operations, five levels, streaks and high scores.Flag QuizGuess the flags of all 196 countries in four modes, from multiple choice to timed.Map QuizFind countries on a clickable world map or name the highlighted one, by continent.Periodic Table QuizLearn all 118 elements: quiz symbols, names and atomic numbers or click them on the table.Spelling Bee GameMake words from 7 honeycomb letters, always using the center letter. New daily puzzle.Jigsaw PuzzleTurn a sample picture or your own photo into a 12 to 150 piece jigsaw puzzle and solve it.Sliding PuzzlePlay the 15 puzzle and 3×3 to 6×6 sliding tile puzzles with numbers or your own photo.Mahjong SolitaireMatch pairs of free tiles to clear the Turtle and two smaller layouts, with hints, shuffle and undo.Scrabble Word FinderFind the highest-scoring words from your rack, with blank tiles, patterns and bingo bonus.Wordle SolverEnter your guesses and colours to see every possible answer and the best next guess.Crossword SolverFind words that fit a crossword pattern like c?t from the length and the letters you know.Word Search GeneratorMake a word search puzzle from your words, play it online or print it with an answer key.Pong GamePlay classic Pong online against the computer on 3 levels or with a friend, first to 11.Breakout GameClassic brick breaker game with levels, power-ups and lives. Play with mouse, touch or keyboard.Whack-a-MoleWhack the moles before they hide in 30 or 60 second rounds. Speed increases, best score saved.Simon Says GameRepeat the growing color and sound sequence. Classic memory game with strict mode and high score.CheckersPlay checkers online against the computer or a friend, with kings, undo and hints.ReversiPlay Reversi (Othello rules) online vs a 3-level computer or a friend, with move hints.GomokuGet five in a row on a 15×15 board against a smart computer or a friend.Battleship GamePlace your fleet and sink the computer's ships in this classic naval guessing game.FreeCellPlay FreeCell solitaire online with the classic numbered deals, undo, hints and auto-move.Word Grid GameFind words in a 4x4 or 5x5 letter grid by dragging across adjacent letters before time runs out.Word Ladder GameChange one letter at a time to turn one word into another. Daily and random word ladders.Chess PuzzlesSolve chess puzzles online: mate in 1, 2 and 3 plus tactics, with hints, a rating and streaks.Clicker GameIdle clicker: mine gems, hire builders, buy upgrades, rebirth for stars and earn while you're away.Color by NumberTap numbered pixels to color pictures, or turn your own photo into a color by number puzzle.Online Coloring PagesColor animal, holiday and mandala pages online with bucket fill and brushes, then print or save PNG.Connections Word PuzzleGroup 16 words into 4 hidden categories. New daily puzzle, full archive, shareable results.Daily Crossword PuzzleA free new crossword every day: quick 5x5 mini or a bigger 13x13, with check, reveal and timer.Farkle Dice GamePlay Farkle online vs the computer or pass-and-play: pick scoring dice, risk it or bank to 10,000.Gin RummyPlay Gin Rummy vs the computer: draw, discard, knock or go gin. Melds found automatically.Jeopardy-Style Quiz Board MakerMake a categories-and-points quiz board, then play it full screen with teams and live scores.Name All Countries QuizType as many of the world's 197 countries as you can in 15 minutes while the map fills in.Piano Tiles GameTap the black tiles to play classic melodies. It speeds up as you go; beat your high score.Pinball GamePlay pinball online with real flipper physics, bumpers, a wire ramp, drop targets and multiball.8 Ball Pool GamePlay 8 ball pool online vs the computer or a friend: aim line, power meter, spin and real physics.Cube SimulatorTurn a 3D 2x2 to 5x5 puzzle cube online: drag or type moves, scramble, time solves and undo.TriPeaks SolitairePlay TriPeaks Solitaire free: clear three peaks with up-or-down runs, streak bonuses, undo and hints.Water Sort PuzzlePour colored water between tubes until every tube holds a single color. Endless solvable levels.20 Questions GameThink of an animal or object and the game guesses it with yes/no questions, then learns.24 GameCombine four numbers with + − × ÷ to make 24. Endless solvable hands, timer and a solver.Asteroids GameClassic vector Asteroids arcade: rotate, thrust and blast space rocks into pieces, wave after wave.Basketball Shooting GameDrag and release to shoot hoops against a 60-second clock, with moving-hoop levels and combo bonuses.Bible Trivia QuizMultiple-choice Bible trivia by book and difficulty, with verse references and a kids mode.Contract BridgePlay contract bridge with 3 computer players: SAYC-style bidding, declarer play, duplicate scoring.Chess Analysis BoardSet up positions, paste FEN or PGN and step through moves with an engine evaluation bar.Guess the Country by ShapeWorldle-style geography game: name the country from its outline in six tries, with distance hints.Cryptogram PuzzleCrack a substitution cipher letter by letter to reveal a famous saying. Daily puzzle, hints, timer.Element Mixing GameMix water, fire, earth and air to discover 400+ items. Discovery book, hints, works offline.EuchrePlay Euchre online with a computer partner: order up trump, use the bowers, go alone, race to 10.Falling Sand GameSandbox with sand, water, fire, plants, lava and more that flow, burn, grow and react. Save your scene.
See all 141 Online Games →