Chess is a two-player board game played on a chessboard, a square-checkered board with 64 squares arranged in an eight-by-eight grid. It is one of the world's most popular games, played by millions of people worldwide at home, in clubs, online, by correspondence, and intournaments.
Each player begins the game with sixteen pieces: one king, one queen, two rooks, twoknights, two bishops, and eight pawns, each of these types of pieces moving differently. Pieces are used to attack and capture the opponent's pieces. The object of the game is tocheckmate the opponent's king by placing it under threat of capture ("check") which cannot be avoided. In addition to checkmate, the game can be won by the voluntary resignation of one's opponent, which may occur when too much material is lost, or if checkmate appears unavoidable. A game may result in a draw in several ways, and neither player wins. The course of the game is divided in three phases. The beginning of the game is called theopening (with the development of pieces). The opening yields to the phase called themiddlegame. The last phase is the endgame, generally characterized by the disappearance of queens.