Every way a chess game can be drawn
A draw is not a failure, it is a result, and there are five routes to it. Stalemate: the side to move has no legal move and is not in check. Agreement: both players simply accept a draw.
Insufficient material: neither side can force mate. King against king, king and bishop against king, king and knight against king are all immediate draws. The diagram shows one of them.
Threefold repetition: the same position, with the same side to move and the same rights, occurs three times. The fifty-move rule: fifty moves by each side pass with no capture and no pawn move. Both of these have to be claimed by a player, or in most software, are applied automatically.
A special case worth knowing: if your flag falls but your opponent has no material capable of mating you, the game is drawn rather than lost.
See also: Threefold repetition, Fifty-move rule, Perpetual check
Explore this position