megasnort / fork-cms-module-elo-rating

Module for Fork CMS to generate Elo ratings for any game that's played between two opponents
MIT License
3 stars 0 forks source link

Add winrate/drawrate and lost rate in % #20

Closed Eldenroot closed 9 years ago

Eldenroot commented 9 years ago

It would be nice to show win/draw/lost rate in % for every user. Now we can see only how many, but not in %

I think it is easy to add and really useful

Eldenroot commented 9 years ago
megasnort commented 9 years ago

It's visible on top of the profile (http://schakenopviso.megasnort.com/ranking/speler/j--mone) in the description. (although you have to do some math)

megasnort commented 9 years ago

About, the win/lost rate in percentages, I don't think adding this provides more clarity. It's just more info. I have got to stop somewhere :)

Eldenroot commented 9 years ago

OK, so what about to add this:

Player has an Elo rating of 1535 and is ranked at position 1. Player played 10 games in total - won 6 games, lost 4 and played a draw 0 times. Win rate is 60 %.

ELO rating and possition should be bolded.

php code for this: function WinningPercentage($wins, $losses){ return round(($wins / ($wins + $losses)) *100), 1).'%'; }

Eldenroot commented 9 years ago

Thank you!