Skip to content

Instantly share code, notes, and snippets.

View anatollupacescu's full-sized avatar

Anatolie Lupacescu anatollupacescu

  • Chisinau, Moldova
View GitHub Profile

DiUS is hosting a tennis tournament. To aid with this, we're developing a scoring system.

The scoring system for tennis works like this.

  • A match has one set and a set has many games

  • A game is won by the first player to have won at least 4 points in total and at least 2 points more than the opponent.

    • The running score of each game is described in a manner peculiar to tennis: scores from zero to three points are described as 0, 15, 30, 40, respectively