Each player begins the game of chess with 16 pieces: one king, one queen, two rooks, two knights, two bishops, and eight pawns. The objective is to checkmate the opponent's king by placing it under an inescapable threat of capture. A game can also result in a draw or be won by resignation. Each piece type moves differently and can be used to attack and capture the opponent's pieces. The game is divided into three phases: opening, middlegame, and endgame.