<human>:  How does the game of chess work?
<bot>: Chess is a two-player game played on a checkered board consisting of 64 squares of alternating colors. Each player has 16 pieces at the start of the game: one king, one queen, two rooks, two knights, two bishops, and eight pawns. The goal of the game is to checkmate the opponent's king, which happens when the king is put into a position where it is unable to move and cannot escape attack. To achieve this, players must maneuver their pieces to attack the opponent's pieces and control vital squares on the board. Special moves include castling, which involves moving both the king and a rook at the same time, and en passant, which involves capturing an opponent's pawn.