The first player to win 6 games wins the set, but only with a lead of at least 2 games. A set can finish 6-0, 6-1, 6-2, 6-3 or 6-4, or 7-5.
At 5-5 the set continues. A player wins at 7-5. At 6-6 a tie-break is normally played.
Games are counted, not points. A set is a series of games.
A match is played as the best of 3 sets or the best of 5 sets. In a best-of-3 match, the first player to win 2 sets wins. In a best-of-5 match, the first to win 3 sets wins.
The organisers announce before the event which one is used.
Women's matches at Grand Slams are best of 3 sets. Men's matches at Grand Slams are best of 5 sets.
In an advantage set, there is no tie-break. Play continues until one player leads by 2 games, so a set can be 8-6 or 12-10.
In a tie-break set, a tie-break game is played when the score reaches 6-6.
A tie-break set keeps long matches from going on forever, so it is used by most events.
Example
The score in a set is 5-4 for A, and A serves. If A wins the game, the set ends 6-4. If B wins the game, it is 5-5, and the set goes on to 7-5 or 6-6.