Subterfuge-Revived / Remake-Backend

Server side validation and API
Creative Commons Zero v1.0 Universal
10 stars 1 forks source link

Global Ranking #3

Open QuinnBast opened 4 years ago

QuinnBast commented 4 years ago

Opened by @XATEV

Displaying rankings may be done by showing the top 100 players as well as your position at the bottom (if position > 100) and may be sorted by points, gold/silver/bronze medals, kills etc. We will updates these values once a game finishes and the .dll is validated on the back-end. In theory there could be all kind of stats, including outposts taken, drillers produced and so on...

QuinnBast commented 4 years ago

@billyb2: Should be relatively simple. When asked by the user for global ranking, the server could just sort all players by rank and show the top 100, as well as showing the current player's position and the 5 players above and below them.

QuinnBast commented 4 years ago

@XATEV That's exactly what I had in mind :thumbsup:

QuinnBast commented 4 years ago

@billyb2: Sweet! I'll start working on implementing this as soon as I can.

QuinnBast commented 4 years ago

We currently have no way of storing, tracking or changing a player's MMR/ranking I don't think. This will eventually all be tied in to the /end_game action and once a game is over the player's MMRs will be updated automatically. Will need to look into how the MMR system works and try to implement it once we get there

QuinnBast commented 4 years ago

@billyb2 But every player's rating is shown in player statistics. As for things like outposts taken, players eliminated, etc., we could add that as a column to player_statistics.