AI in chess means computer programs — called engines — that play far better than any human alive. They look ahead through millions of possible moves and judge which positions are good, a job they now do with neural networks trained on countless games. Most players meet them as a training partner, not an opponent.
Key Takeaways
- Engines search millions of positions, score each one, and pick the move leading to the best position.
- Older engines judged positions with hand-written rules; modern ones use neural networks that learned from games.
- AlphaZero taught itself chess by playing against itself, and changed how grandmasters think.
- Engines are now a training tool: players analyse games with them to find mistakes.
- Engines calculate, they do not understand.
How does a chess engine decide on a move?
Think of a chess game as a tree. From any position there are usually around thirty legal moves, each leading to a new position with thirty more. The tree grows so fast that no computer can look at all of it — there are far more possible games than atoms in the observable universe. So an engine cheats, cleverly: it looks ahead as far as it can, scores the positions it reaches, and picks the move that leads to the best score.
The score comes from an evaluation function. In the old, classical engines, that function was a formula written by programmers: count the material (a queen is worth about nine pawns, a rook five), then add small bonuses for things humans value — a knight in the centre, a safe king, healthy pawns. The search then explores the tree with alpha-beta pruning, skipping branches it can prove cannot improve the result. Together, a decent judge and a fast, ruthless search made engines strong enough to beat the best humans: IBM’s Deep Blue did exactly that against Garry Kasparov in 1997.
Modern engines keep the search but changed the judge. Stockfish, the engine most players use today, now scores positions with a small neural network called NNUE, trained on positions from engine play. It still searches millions of positions a second on an ordinary processor, but the judgement at the end of each line is learned, not hand-written.
What did AlphaZero do differently?
AlphaZero, built by DeepMind, took a different road. Instead of hand-written rules or a classical search, it learned chess from nothing but the rules and games against itself. A large neural network played millions of games against its own copies, adjusting after each one: moves that led to wins became more likely, positions that led to losses were scored lower. Within hours it played beyond human level, beating Stockfish convincingly in test games in 2017. What excited grandmasters was the style: sacrifices for long-term pressure and pawn pushes textbooks warned against — ideas that have since entered human play.
One honest caveat: AlphaZero was never released to the public. Its open-source cousin, Leela Chess Zero, works the same way but needs a graphics card to play at its best, while Stockfish runs well on an ordinary laptop. That is why most players analyse with Stockfish and read about AlphaZero.

How do grandmasters actually use engines?
Almost nobody trains by playing full games against an engine at full strength — that is like learning tennis from a ball machine set to impossible. The real use is analysis. After a game, a player feeds it to the engine and watches the evaluation bar: where it swings sharply, there was a mistake, and the engine shows the better move. Strong players use this to check opening preparation and test ideas before a tournament; coaches build exercises from it, asking students to find the tactic the engine spotted. The risk is dependence: an engine tells you what is best, not why, and a player who copies its moves without understanding them will fall apart when the position leaves the engine’s preparation.
A worked example: one lost game, one evening
Imagine Maya, a club player rated around 1600, who loses a game she felt she was winning. She replays it with Stockfish running beside the board. For twenty moves the evaluation barely moves — she played the opening well. Then, on move 23, the bar jumps: she played a natural-looking rook move, and the engine says it loses a pawn by force. She clicks through and finds a quiet bishop move she never considered, threatening a fork. She spends twenty minutes on that position until she sees the pattern — a knight that looked safe was actually pinned — and the next week she spots the same pin herself and wins the exchange.
Classical engines vs neural engines
| Classical engines (old Stockfish) | Neural engines (AlphaZero, Leela) | |
|---|---|---|
| Judging a position | Hand-written formula | Neural network learned from games |
| Searching | Alpha-beta search, millions of positions a second | Monte Carlo tree search, fewer positions, chosen wisely |
| Hardware | Ordinary processor, many cores | Graphics card (or Google’s TPUs for AlphaZero) |
| How it learned | Programmers coded human chess knowledge | Self-play: millions of games against itself |
| Style | Precise, tactical, sometimes rigid | Creative, sacrifices material for pressure |
| Available to you | Stockfish is free and open source | Leela is free; AlphaZero was never released |
Where do engines still fall short?
Engines are not chess gods. First, they are only as good as their search depth. In a quiet, closed position with a slow plan, even a strong engine can misjudge what matters, because the payoff lies beyond the moves it can see. Humans, who think in plans rather than positions, sometimes understand those spots better.
Second, engines do not understand the game. They do not know why a move is beautiful; they know which positions score higher. That is why their analysis can be hard to learn from — the best move can look strange until you work out the idea behind it.

Frequently Asked Questions
Can any human still beat the best chess engine?
In a fair, classical game, no. The gap is too wide — the best engines sit hundreds of rating points above the best humans. A human might draw against a weakened engine, but at full strength the result is not in doubt.
Which chess engine should a beginner use?
Stockfish. It is free, open source, and built into most chess apps and websites, so you probably already have it. Analyse your games after you finish, rather than playing against it at full strength, and look at the big evaluation swings first.
What is the difference between Stockfish and AlphaZero?
Stockfish is a classical engine that now uses a small neural network to judge positions, searching millions of positions a second on a normal processor. AlphaZero used a large neural network and learned entirely from self-play, searching far fewer positions but choosing them more cleverly. Stockfish is free; AlphaZero was never released.
Can I use an engine to cheat in online chess?
Technically yes, and that is why it is banned on every serious chess site. Sites detect engine use by comparing your moves with engine choices, and the penalty is usually a closed account. It also teaches you nothing.
Conclusion
AI in chess began as a test of whether machines could think, and it ended up as the best training partner the game has ever had. Engines search further and judge better than any human, and the neural-network generation showed machines can find ideas humans missed for centuries. Their real value is practical: they point at your mistakes the moment you make them. If you play chess, the next step is simple. Play a game, run it through Stockfish, and spend ten minutes on the one move where the evaluation swung hardest.
Further reading: AlphaZero and Ramachess neural network chess engines.

