The object of the game is to checkmate ( capture the king ) .
The object of the game is to trap the opponent 's king so that its capture is unavoidable ( checkmate ) .