*** Welcome to piglix ***

King (chess)

Chess pieces
Chess kdt45.svgChess klt45.svg King
Chess qdt45.svgChess qlt45.svg Queen
Chess rdt45.svgChess rlt45.svg Rook
Chess bdt45.svgChess blt45.svg Bishop
Chess ndt45.svgChess nlt45.svg Knight
Chess pdt45.svgChess plt45.svg Pawn

In chess, the king (♔, ♚) is the most important piece. The object of the game is to threaten the opponent's king in such a way that escape is not possible (checkmate). If a player's king is threatened with capture, it is said to be in check, and the player must remove the threat of capture on the next move. If this cannot be done, the king is said to be in checkmate, resulting in a loss for that player. Although the king is the most important piece, it is usually the weakest piece in the game until a later phase, the endgame. Players cannot make any move that places their own king in check.


White starts with the king on the first rank to the right of the queen. Black starts with the king directly across from the white king. The white king starts on e1 and the black king on e8.

A king can move one square in any direction (horizontally, vertically, or diagonally) unless the square is already occupied by a friendly piece or the move would place the king in check. As a result, the opposing kings may never occupy adjacent squares (see opposition), but the king can give discovered check by unmasking a bishop, rook, or queen. The king is also involved in the special move of castling.

In conjunction with a rook, the king may make a special move called castling, in which the king moves two squares toward one of its rooks and then the rook is placed on the square over which the king crossed. Castling is allowed only when neither the king nor the castling rook has previously moved, no squares between them are occupied, the king is not in check, and the king will not move across or end its movement on a square that is under enemy attack.

If a player's move places the opponent's king under attack, that king is said to be in check, and the player in check is required to immediately remedy the situation. There are three possible methods to remove the king from check:


...
Wikipedia

...