Stalemate

Example of stalemate
abcdefgh
8
h8 black king
g6 white queen
a1 white king
8
77
66
55
44
33
22
11
abcdefgh
Black to move is stalemated. Black is not in check and has no legal move since every square the king might move to is attacked by White.[1]

Stalemate is a situation in chess where the player whose turn it is to move is not in check and has no legal move. Stalemate results in a draw. During the endgame, stalemate is a resource that can enable the player with the inferior position to draw the game rather than lose.[2] In more complex positions, stalemate is much rarer, usually taking the form of a swindle that succeeds only if the superior side is inattentive.[citation needed] Stalemate is also a common theme in endgame studies and other chess problems.

The outcome of a stalemate was standardized as a draw in the 19th century (see § History of the stalemate rule, below). Before this standardization, its treatment varied widely, including being deemed a win for the stalemating player, a half-win for that player, or a loss for that player; not being permitted; and resulting in the stalemated player missing a turn. Stalemate rules vary in variants and other games of the chess family.