Rules and notation
Checkmate or just check?
Checkmate means the king is in check and its side has no legal move. A trapped king is not enough if another piece can take the checker or block the ray.
Worked example
Position in text
Black to move. White: rook e8, king a1. Black: king g8, pawn f7, pawn g7, pawn h7.
FEN: 4R1k1/5ppp/8/8/8/8/8/K7 b - - 0 1
The rook on e8 checks across f8. The black king cannot use f8 or h8, and f7, g7 and h7 are occupied by Black’s pawns. None of those pawns can take e8 or block f8. This is mate.
A plausible mistake
Do not mark mate purely because the king has no destination. Examine each square between the checker and king, then ask what could occupy it or capture the checker.
Try it yourself
Position in text
Black to move. White: rook e8, king a1. Black: king g8, knight d7, pawn f7, pawn g7, pawn h7.
FEN: 4R1k1/3n1ppp/8/8/8/8/8/K7 b - - 0 1
Add the black knight on d7 as shown. Does the king gain an escape, or does Black have another kind of reply?
Check your answer
The king still has no flight square, but Nf8 interrupts the rook’s line. Since that one block is legal, the position is check, not mate.