← Back to the game

Ponder

A chess AI that doesn't just pick the move that looks good. It imagines how the game could unfold, then chooses the move whose futures look best.

How it thinks

1LookIt reads the whole board at once: where every piece stands and whose turn it is.
2SuggestFrom a first glance it shortlists the moves that look most promising: its instinct.
3CalculateFor each shortlisted move it plays out a variation on a real board: its move, the reply it expects, its next move, and so on, re-reading the board after every move.
4Judge and decideIt looks at where each line ends and asks "who is better here?". It plays the move whose future looks best.
Nf3 d5 d4 Nf6 e3 Bf5ends 55% for White
e4 e5 Nf3 Nc6 Bb5 a6ends 58% for White
Two of the variations Ponder might weigh, shown the way the game shows them.

The opponent gets a say too. For each of its moves, Ponder can consider several replies and assumes you will choose the one that is worst for it. A move only counts as good if it holds up against your best answer.

Every variation it calculates appears next to the board while it plays, so you can watch what it is weighing and click any candidate to see all the replies it explored.

What the sliders change

Candidate moves
How many different first moves it works out a full line for. At 1 it simply trusts its first instinct.
Depth
How many half-moves each line runs before it judges the position. Deeper lines see further ahead, but every extra move is another guess, so longer lines are not always better.
Replies per move
How many different answers it considers for each of its moves. More replies mean it is harder to trick.
Strength
Presets of the above. Lower levels also sometimes choose a less obvious move on purpose, so they play more like a person.

How it learned

First, it studied. Ponder was shown millions of chess positions that the Stockfish engine had already analysed. From them it learned to suggest strong moves and to tell who is winning, and it was also shown the lines Stockfish expected to follow.

Then, it practised. In the second stage it used reinforcement learning: it picks between its own variations and its own calculations, and is rewarded when its choice, the lines it imagines and its judgement of the final position agree with Stockfish's analysis. This is what teaches it to calculate carefully rather than just recognise good-looking moves.

In the game you can play either version: Pretrained (the first stage only) or RL fine-tuned (after the practice stage).

Honest limits

Watch it play Stockfish

Switch the mode to Watch Ponder vs Stockfish to see the two play each other. Stockfish runs right in your browser, and you can set its strength from club level up to full power, and how long it thinks per move. Stockfish is free software (GPL v3); the copy bundled here is unmodified Stockfish 19 compiled to WebAssembly.

Ponder is small and learns from examples, so it is not a search engine like Stockfish. It can imagine a line that is wrong, and it judges the end of a line by feel, not by exhaustive calculation. It has no official rating; the only way to know how strong it is, is to play it.

Why "Ponder"?

In chess engines, to ponder is to think ahead during the opponent's turn. That is the whole idea here: spend the effort imagining the future before committing to a move.

Play Ponder