Mate in 2
Black to move
Solution
One solution line: c5+ dxc6 Nxc6#.
Position analysis
What happens on the board after the solution.
The key idea
c5+ dxc6 Nxc6# The king on d4 is in check from knight c6. Its own pieces occupy c3, c4. The other escape squares are covered: d3 — queen f3, e3 — queen f3, e4 — queen f3, c5 — pawn d6, d5 — queen f3, e5 — knight c6. No legal capture or block removes the check. It is checkmate. Every defense and mating continuation: dxc6 → Nxc6#.
How to find checkmate
Check the king’s escape squares and every available defense.
When check becomes checkmate
Checkmate occurs when the king is in check and its side has no legal move. With no legal move and no check, the result is stalemate.
Three ways to defend
First check whether the king can move to a safe square. Then look for a legal capture of the checking piece or a block. A knight check cannot be blocked. In double check, only a king move can get out of check.
Mate against every reply
For mate in two, choose a first move, list the opponent’s replies, and find a mate after each. The first move can be quiet. A quiet move leaving the opponent with no legal reply produces stalemate.
Sources
Check and king safety
How to identify check and test the legality of a reply.
King safety after a move
Check your own king after the move you are considering. A pawn can leave a file and expose its king to a rook check even if the king was safe before the move.
Pinned pieces
A pinned piece still attacks squares according to its movement rules. Count those attacks when testing a king move or castling.
Reading the line of check
Locate the checking piece first. If the check travels along a line, test whether it can be blocked. Then check captures and king moves.
Sources
En passant
The pawn has one move to use this right.
Why the pawn disappears from a neighboring square
If an enemy pawn has just moved two squares and landed next to yours, your pawn can capture it en passant. It moves to the square the enemy pawn passed over. The capture must be made immediately and must leave your own king safe.
Sources
Sources · Lichess