Akki2200 / tennisScoring

Table Tennis Scoring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table Tennis Scoring

Table Tennis Scoring

  1. There are two players in the game.
  2. Every player gets to serve twice in a row.
  3. The first to 11 points is declared the winner.
  4. If the points are tied at 10-10, a player then has to strive for a two-point lead to win the game.
  5. If the scores are tied at 20-20, the first player to reach 21 point wins the game

Assume each player winning the point randomly. If the random functions returns even, then first player wins the point, if it returns odd, the second player wins the point

Display the score and the winning player.

About

Table Tennis Scoring

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%