---
title: "How AlphaZero Plays Chess"
url: "https://georgelichess.com/learn/how-alphazero-plays-chess.md"
canonical_url: "https://georgelichess.com/learn/how-alphazero-plays-chess"
last_updated: "2026-11-25"
type: "guide"
summary: "How the self-taught program AlphaZero picks chess moves, how its search differs from a classic engine's, what its match showed and what a player can borrow."
related: ["https://georgelichess.com/glossary/chess-engine.md", "https://georgelichess.com/learn/chess-engine-explained.md", "https://georgelichess.com/glossary/neural-network-engine.md", "https://georgelichess.com/glossary/alpha-beta-pruning.md", "https://georgelichess.com/glossary/minimax.md", "https://georgelichess.com/glossary/stockfish.md", "https://georgelichess.com/learn/how-to-calculate-better-in-chess.md", "https://georgelichess.com/learn/when-to-use-a-chess-engine-with-a-young-player.md", "https://georgelichess.com/pricing.md", "https://georgelichess.com/book/first-lesson.md"]
---

# How AlphaZero Plays Chess

> **For AI agents:** the complete index of GeorgeLiChess pages is [llms.txt](https://georgelichess.com/llms.txt). Every page is also served as markdown at its URL plus .md.

How the self-taught program AlphaZero picks chess moves, how its search differs from a classic engine's, what its match showed and what a player can borrow.

AlphaZero is a chess program from DeepMind that was given only the rules of the game and taught itself by playing against itself. A traditional engine searches tens of millions of positions a second and scores them with a hand-built evaluation. AlphaZero instead uses a neural network to suggest promising moves and judge positions, and a sampled search to test them. In the first paper about it, in 2017, it searched about 80 thousand positions a second against about 70 million for Stockfish, and it won a 100-game match without losing a game.

## What is AlphaZero?

AlphaZero is one program that learns a board game from its rules, and chess was one of three games the DeepMind team tried, with shogi and Go. It started from random play and had no opening book, no endgame tables and no human games to study. Its only teacher was the result of each game it played against itself. The training run in the paper lasted 700,000 steps, and the program's strength passed Stockfish's during that run, after about four hours of training on very large hardware. A separate copy was trained for each game.

The paper also reports the match that made headlines. The table gives the main facts from the paper's first version, and later versions changed some details.

**AlphaZero and Stockfish in the 2017 paper**

| Point | AlphaZero | Stockfish |
| --- | --- | --- |
| How it chooses a move | A neural network guides a Monte-Carlo tree search | Alpha-beta search with a hand-built evaluation |
| What it was given | The rules of chess | Decades of human chess knowledge written into the program |
| Positions searched | About 80 thousand a second | About 70 million a second |
| Time per move | One minute | One minute |
| Result over 100 games | 28 wins, 72 draws, no losses | 0 wins |

The paper gives the conditions: one minute per move, Stockfish running with 64 threads and a 1 GB hash table, and AlphaZero on a single machine with four specialized chips. Read the result as a demonstration of a new method under those conditions, not as a final ranking of engines.

## How does AlphaZero learn?

It learns by a loop of play and correction, with no human input.

1. **Play a game against itself.** The program chooses both sides' moves by its search. In the first games the network knows nothing, so the moves are close to random.
2. **Score the game.** The result is a win, a draw or a loss, and that one number is the only feedback.
3. **Adjust the network.** The network is changed so that its prediction for each position gets closer to the result that followed, and so that its move suggestions match what the search found.
4. **Repeat.** The next games are played with the improved network, so the games are a little better and the lessons a little sharper.

Millions of repetitions are needed, which is why the work depended on great computing power. A human player learns from far fewer games because a coach, a book and common sense give structure from the start.

## How is its search different from a classic engine's?

A classic engine such as [Stockfish](https://georgelichess.com/glossary/stockfish.md) builds a tree of moves and replies. It assumes the opponent always chooses the best reply, which is the idea of [minimax](https://georgelichess.com/glossary/minimax.md), and it uses [alpha-beta pruning](https://georgelichess.com/glossary/alpha-beta-pruning.md) to stop looking at a branch once one reply proves the move is no good. Where the search ends, a hand-made evaluation counts material, king safety, pawn structure and similar features. The strength comes from speed and from knowledge that people wrote into the program.

AlphaZero replaces both parts. For each move it runs a number of simulated games from the position, which the paper calls simulations, and during training it used 800 per move. Each simulation follows moves that the network rates as likely, that lead to positions the network likes and that have not been tried much yet. Where a line stops, the network's own verdict replaces the hand-made evaluation. The program then plays the move that its simulations visited most.

The result is a search that looks at far fewer positions and aims them well. The paper says this is arguably closer to how a human thinks, because strong players also leave most moves unexamined and spend their time on a few promising lines. That is a description of the method, and it does not mean the program thinks as people do.

## What did it show about chess?

Two results stand out. First, the openings that people play most often in a large online database also appeared in AlphaZero's own games, found without any book. Starting from each of those openings, it beat Stockfish in the paper's tests. Second, in the paper's test of thinking time, its search gained more from extra time than Stockfish's did, which cast doubt on the belief that alpha-beta search is inherently the better design. Both are observations from one study, so treat them as ideas worth knowing, not as rules of chess.

## What can a club or junior player borrow?

You cannot copy a neural network, but you can borrow the habits behind it. This table is coaching judgment, not part of the paper.

**Ideas from AlphaZero for a human player**

| Idea | How to use it |
| --- | --- |
| Look at few lines, chosen well | Pick two or three candidate moves and calculate them to a quiet position, as in [how to calculate in chess](https://georgelichess.com/learn/how-to-calculate-better-in-chess.md) |
| Judge by the final position, not only by material | At the end of a line, ask whose pieces are working better and whose king is safer |
| Learn from your own results | Review every game, including wins, and write down the position where it turned |
| Do not copy a line you cannot explain | Ask an engine for the move, then ask why it works before you add it to your notes |

For young players the last row matters most. The page on [using an engine with a young player](https://georgelichess.com/learn/when-to-use-a-chess-engine-with-a-young-player.md) says when to switch it on, and [what the strength settings mean](https://georgelichess.com/learn/chess-engine-explained.md) explains the engine side. A [first lesson](https://georgelichess.com/book/first-lesson.md) with George goes through one of your games and sets the ideas that fit your level.

## Frequently asked questions

**Is AlphaZero stronger than Stockfish?**

In the 2017 match it did not lose a game over 100, under the conditions the paper lists, and engines have changed since. The safe reading is that it proved a different method could reach the top.

**Can I play against AlphaZero?**

The paper describes a research system and does not offer it as a program to download. Engines you can play today are described on the page about [chess engines](https://georgelichess.com/glossary/chess-engine.md).

**Did AlphaZero use an opening book?**

No. Its openings came from its own games, and the paper notes that the most common human openings appeared among them.

**How many moves ahead does it calculate?**

There is no fixed depth. It runs simulated games and spends most of them on the moves its network likes, so some lines go deep and most are never looked at.

## Turn engine ideas into your own plans

A first lesson with George takes one of your games and shows which ideas from computer play help at your level. [Book a lesson](https://georgelichess.com/book.md).

## Related

- [How to Use a Chess Engine to Improve](https://georgelichess.com/glossary/chess-engine.md)
- [How to Beat a Chess Engine: Levels Explained](https://georgelichess.com/learn/chess-engine-explained.md)
- [Neural network engine](https://georgelichess.com/glossary/neural-network-engine.md)
- [Alpha-beta pruning](https://georgelichess.com/glossary/alpha-beta-pruning.md)
- [Minimax](https://georgelichess.com/glossary/minimax.md)
- [Stockfish](https://georgelichess.com/glossary/stockfish.md)
- [How to Calculate in Chess](https://georgelichess.com/learn/how-to-calculate-better-in-chess.md)
- [Should a Young Player Use a Chess Engine?](https://georgelichess.com/learn/when-to-use-a-chess-engine-with-a-young-player.md)
- [Lesson packages and prices](https://georgelichess.com/pricing.md)
- [/book/first-lesson](https://georgelichess.com/book/first-lesson.md)

## Related

- [How to Use a Chess Engine to Improve](https://georgelichess.com/glossary/chess-engine.md)
- [How to Beat a Chess Engine: Levels Explained](https://georgelichess.com/learn/chess-engine-explained.md)
- [Neural network engine in chess](https://georgelichess.com/glossary/neural-network-engine.md)
- [Alpha-beta pruning in chess](https://georgelichess.com/glossary/alpha-beta-pruning.md)
- [Minimax in chess](https://georgelichess.com/glossary/minimax.md)
- [Stockfish in chess](https://georgelichess.com/glossary/stockfish.md)
- [How to Calculate in Chess](https://georgelichess.com/learn/how-to-calculate-better-in-chess.md)
- [Should a Young Player Use a Chess Engine?](https://georgelichess.com/learn/when-to-use-a-chess-engine-with-a-young-player.md)
- [Chess Lesson Prices: $150 First Lesson](https://georgelichess.com/pricing.md)
- [Chess First Lesson With IM George Li](https://georgelichess.com/book/first-lesson.md)
