a. The only required data for registration is the player's first name and last name, nationality and the date of birth.
d. Each newly registered player should start with the score of 1200 points for the purpose of the ranking.
a. It should be possible to list only players of particular nationality and/or rank name or all players.
i. the current position in the whole ranking
ii. first and last name
iii. age
iv. nationality
v. rank name
vi. points
i. The unranked players should also be ordered by points (descending) but should appear at the bottom of the list, below all other ranks
i. For Example, if Luca (1000 points) wins a match against Brendan (900 points)
Luca should end up with 1090 points after the game and Brendan with 810.
ii. If Daniel (700 points) wins a match against James (1200 points), Daniel should end up with 820 points afterthe game and James with 1080
The code should be as readable and as well-organised as possible. Add any other information and/or extra validation for the above endpoints as you deem necessary.
Rank | Points |
---|---|
Unranked | (The player has played less than 3 games) |
Bronze | 0 - 2999 |
Silver | 3000 - 4999 |
Gold | 5000 - 9999 |
Supersonic Legend | 10000 - no limit |