A badminton match consists of sets, and each set is played to 21 points. The player or pair that scores 21 points first wins the set. If the score reaches 20-20, the set is won by the first player or pair to achieve a two-point advantage. If the score reaches 29-29, the player or pair scoring the 30th point wins.