Draw in Chess
Occasionally, chess games do not end with a winner, but result in a draw.
There are 5 main reasons why a chess game may end in a draw:
1. STALEMATE: This occurs when it is a player's turn to move, but their King is NOT in check and they have no legal moves available anywhere on the board.
In the following example, it is Black's turn to move, but the King cannot land on any adjacent square because it is illegal to move into check, nor can it capture the white Rook, which is defended by its King.

2. Mutual Agreement: Both players may simply agree to a draw and stop playing.
3. Insufficient Material: There are not enough pieces left on the chessboard to force a checkmate (for example: a King and a Bishop versus a lone King).
4. Threefold Repetition: A player can claim a draw if the exact same position is repeated three times during the game (though not necessarily three times in a consecutive row).
5. Fifty-Move Rule: Fifty consecutive moves have been played by both players without moving a pawn or capturing any piece.
Some Codes Used in Chess