A position with mate in 2
- Input
- 4kb1r/p2n1ppp/4q3/4p1B1/4P3/1Q6/PPP2PPP/2KR4 w k - 0 16
- Expected output
- M2: 16. Qb8+ Nxb8 17. Rd8#
This is the position after 15...Nxd7. The engine should show mate in 2, which is exactly how Morphy ended the game.
Chess Analysis Board with Stockfish
stockfish online
This is Stockfish, the most widely used open-source chess engine in the world, running inside the page: you open it, flip the switch and it calculates on your own machine. The page comes loaded with the Opera Game (Morphy, Paris, 1858), paused on the position where White has a forced mate in two.
This is the position after 15...Nxd7. The engine should show mate in 2, which is exactly how Morphy ended the game.
That is 3 ordered lines, the first with a green arrow and the others blue. When the best line is a mate, the others usually trail far behind in the score: the gap shows how unique the move is.
In Settings, turn off the online lookups: no request with the position leaves the browser. Stockfish keeps working; only the cloud, the masters explorer and the tablebase stop showing.
No. Stockfish runs right in the browser, inside the page, and the analysis does not depend on a login or a daily limit of games. The first time you turn the engine on, the browser downloads about 1.8 MB; after that the file stays cached.
Stockfish 19 in a lite single-thread build (npm package stockfish 19.0.1, by Nathan Rugg). The file is served unmodified and the GPL-3 license, version and source code are in /engines/stockfish/README.md.
It works, only slower. Cutting the lines to 1 or 2 and the depth to 16 helps older devices and saves battery. Infinite search keeps the processor busy: turn the switch off when you are done.
Each depth level sees one more move ahead. An evaluation at depth 12 can miss a tactic that depth 20 sees. That is why the score changes while the search deepens, and it is only worth trusting once it settles.
This page is an analysis board, not a game. To play against the computer at several levels, use the site's chess game. Here the engine is for studying positions and games.
Use the arrow keys to move between squares. Enter or space selects a piece, then the destination square. Escape cancels.
The opening appears once you play the first moves.
Turn on Stockfish to see the best lines.
Stockfish 19 (lite build), unmodified, under the GPL-3 license. License and source code: engine README · Stockfish
Games, comments and the Stockfish analysis stay in your browser. Only the cloud evaluation and the Explorer query Lichess (with the current position), and both can be turned off in Settings.