RelativelyFine / COMPSA-Frontend

Official Queen's Computing Student's Association Website!
MIT License
3 stars 0 forks source link

Fix Leaderboard Rankings #11

Closed RelativelyFine closed 2 years ago

RelativelyFine commented 2 years ago

The current leaderboard rankings indicate that if m people are tied for rank n, their displayed rank would be n The proper way to show this is to indicate that if m people are tied for rank n, their displayed rank would be n + m - 1

This will encourage users to snatch a higher rank.

ie. 4 people are tied for rank 3.

m = 3, n = 4

Displayed rank = 3 + 4 - 1 = 6 All people are tied in the displayed rank 6, and there is no displayed rank 3,4, or 5.

amaanjaved1 commented 2 years ago

Updated code within profiles component