♟️
Live · Ready to playboard

Chess vs AI

🔄Rotate your phone for the best experience
Category
Board
Players
Single player
Avg session
~3 min
Platform
Browser · HTML5
— About the game

About Chess vs AI

Chess vs AI brings the world's most-studied board game to your browser with three levels of computer opposition. You play White (the traditional first-move side) and the AI plays Black. Every legal chess rule is enforced — piece movement, captures, checks, checkmates, stalemates and automatic pawn promotion to queens. The game is fully self-contained: no engine install, no account, no download. Just open the page and play.

The three difficulty levels are designed to grow with you. Easy plays random legal moves, which means it will hang pieces and miss obvious captures — perfect for absolute beginners learning how the pieces move and how to spot free material. Medium plays greedily, always capturing the highest-value piece available; it will not fall for hanging pieces but it will happily walk into a trap that costs it queen for pawn if the pawn is the immediate best capture. Hard uses a two-ply minimax search with material evaluation, which means it considers your best reply to every candidate move and picks the one that leaves it in the best position — it will spot two-move tactics, recapture correctly, and defend threatened pieces reliably.

This is a great environment to practise the fundamentals of chess without pressure. Legal move highlighting shows every square a selected piece can go to, so you never accidentally play an illegal move. The board shows check with a red highlight on your king. Pawns that reach the far rank automatically promote to queens, which keeps casual games flowing without a promotion dialog. Your total wins against the AI are counted persistently, and every win against Hard difficulty is a genuine achievement.

Whether you are learning the piece movements for the first time or drilling opening lines against a middle-strength opponent, Chess vs AI is a friction-free way to play. On mobile, the tap-to-select and tap-to-move interface is deliberately gentle — misclicks just re-select rather than making an accidental move. Games are turn-based, so there is no time pressure and no rush. Think as long as you want on each move.

— How to play

How to play Chess vs AI

  • Choose Easy, Medium or Hard on the Play overlay
  • You always play White
  • Tap a piece to see its legal moves (green dots)
  • Tap a highlighted square to move · Pawns auto-promote
— Controls

Chess vs AI controls

Desktop (mouse & keyboard)

Use arrow keys, WASD, the mouse or spacebar where the game requires it. Specific controls match the "How to play" steps above — each step describes the exact input the game expects.

Mobile (touchscreen)

Tap, hold, swipe or drag — whichever your finger naturally does for the action described in the steps. Chess vs AI is mobile-first and works in portrait or landscape on any modern phone or tablet.

— Strategy & tips

How to win

  • Develop your knights and bishops before moving the same pawn twice.
  • Control the centre with pawns (e4, d4) and pieces early.
  • Castle early to protect your king and connect your rooks.
  • Do not bring your queen out too early — it will get chased and cost you tempo.
  • Count material after every capture. If a trade is not equal, it should favour you.
  • Look at all captures and checks first when choosing a move — they are the sharpest options.
  • Against Easy AI, hunt for hanging pieces every turn — it leaves free material constantly.
  • Against Hard AI, avoid tactical shots you have not fully calculated — it will see through bluffs.
— Game features

Why you'll love it

  • Full 8×8 board with all standard chess rules
  • Three AI levels: Easy (random), Medium (greedy), Hard (2-ply minimax)
  • Legal move highlighting and check detection
  • Automatic pawn promotion to queen
  • Persistent win counter across sessions
— Origin & history

The story behind Chess vs AI

Chess in its modern form emerged in Europe in the late 15th century, evolving from the older Indian game chaturanga through Persian shatranj and Arab influence. The rules for the queen and bishop's modern long-range moves stabilised in Spain and Italy around 1475. The first world chess championship was played in 1886 between Wilhelm Steinitz and Johannes Zukertort. Computer chess as a serious field began with Claude Shannon's 1949 paper "Programming a Computer for Playing Chess", which established the minimax search framework that all classical chess engines still use. IBM's Deep Blue defeated then-world-champion Garry Kasparov in a 1997 match, a landmark moment in artificial intelligence. Modern engines like Stockfish and Leela Chess Zero now play at superhuman strength — Stockfish has been rated over 3500 Elo, roughly 700 points above the highest-rated human player in history. The AI in this browser game is deliberately much weaker than that — it is designed to give beginners and intermediate players a friendly, solvable opponent rather than a perfect one.

— Advanced strategy

Master-level Chess vs AI

The single most important strategic idea in any chess game against a computer opponent is piece activity. Beginners think in terms of material — how many pieces they have on the board — and try to protect every piece from capture. Improving players think in terms of activity — how many squares each of their pieces influences and how many threats they collectively create. A well-placed knight in the centre of the board attacks eight squares; the same knight in the corner attacks two. Against the Medium and Hard AI on this site, the winning approach is to actively develop your pieces into the centre in the first ten moves, castle to safety, and then look for tactical shots that gain material through fork, pin and skewer patterns. Passive play — moving the same piece back and forth, keeping everything safe — loses to any competent AI because it lets the AI build a slow positional advantage that eventually cracks your position open.

The second key concept is trade evaluation. When you have a choice to trade pieces, ask three questions: does the trade favour me materially, does it improve my piece activity, and does it improve or worsen my king safety? Beginners often assume that trading queens is always safe (it usually is when material is roughly equal), that trading rooks is neutral (it depends on open files), and that trading bishops for knights is fine (it depends on the position — bishops are better in open positions, knights are better in closed ones). The Hard AI on this site plays trades correctly, so if it initiates a trade, it usually thinks the trade helps it. When you have a choice about whether to accept a trade, defaulting to "keep pieces on when I am winning, trade when I am losing" is a decent heuristic — the losing side wants fewer pieces on the board to reduce the winner's options.

— Frequently asked questions

Chess vs AI FAQ

Why does my pawn always become a queen?

This game uses automatic queen promotion because it keeps play flowing and is the correct choice in over 99% of real positions. In classical chess, when a pawn reaches the eighth rank, the player can choose to promote it to a queen, rook, bishop or knight — but the queen is so much stronger than the other options that it is almost always the right pick. The exceptions (under-promotion to knight to give check, or to rook to avoid stalemate) are advanced tactical curiosities that come up perhaps once per hundred games, so we default to queen for simplicity.

How strong is the Hard AI?

The Hard AI uses a two-ply minimax search with material evaluation. That means it looks two moves deep — one AI move and one of your best replies — and picks the move that leaves it with the best material after your best reply. In practical terms, this puts it at roughly beginner club-level strength: it will not blunder pieces, it will find simple tactics, but it will miss deeper strategic plans and multi-move combinations. It is a good sparring partner for players learning to think more than one move ahead.

Does the AI support castling and en passant?

This lightweight version supports the essential rules — standard piece movement, captures, checks, checkmates, stalemates and pawn promotion — but it does not implement castling or en passant. Those two special moves are important for competitive play but rarely change the outcome at beginner and intermediate levels, and skipping them keeps the code compact and fast. If you want to practise the special moves, this game is a good starting point for the general strategy, but a full chess engine will handle those rules exactly.

— Strategy guides

Read our Chess vs AI guides

All guides →
— Similar games

You may also like

View all Board