Formula for leaderboard

Hi all,

Does anyone know what the correct formula for calculating a leaderboard in a head to head fighting game ?
you can only win or lose.
Thanks

I’d say, could you elaborate a little bit on that question, I’m not sure what you are on about. I’ve never done a fighting game my self to be honest. What do you mean by leaderboard?

// Json

I believe he is looking for a way to rank players based on game wins/losses.
These two articles might be good starting points.


Usually it is a formula based on the ranking.

For example, set a range 1 to 1000. 1000 is best.
Set the gain minimum of lets say 400. If someone is less than 400 rank below you, no gain.
Set your equal equal or less than equal minimum gain to 10.
Set your max gain to 30.
Everyone starts at 500.

if a level 1 beats a level 1000 he gains 30 points plus the minimum 10 for 40.

if a level 500 beats a 500 he gains 10 points. equal equal.

if a level 1000 beats a 500 he gains nothing because below 400 threshold.

if a level 1000 beats 600 = 1 point. 640 2, 680 3 etc. 1/10th of equal equal 10.

if a level 600 beats a 1000 he gains 40% of 30 +10 (10 being less than equal gain) or 22.

Thanks guys thats what i was looking for damn didnt think it was gonna be that hard. together with darrins proposal and that elo link i think i can figure it out.
Thanks a million i really appreciate it. You all know Im gonna be the number 1 ;D haha

It’s worth bearing in mind that Elo assumes that people play at their actual strength. I’ve seen Elo-style ratings horribly manipulated in some online games by people who sign up lots of accounts to play rigged games. There’s no easy solution to this, so you might want to start thinking of complex ones early on.

The more i think about it the more im tending to use a different approach.

The leader will now be based on how much money you earn while playing, this can vary depending on how long you stop online as bonuses are gained every ten mins or so and said bonuses can only be collected if you fight in ai training as i use this update method to add the new scores to the database(trying to save on bandwidth).
you win cash when you win a ai training match so potentially you can earn more by stopping online and not playing at all,
but that wont save you from loosing cash if someone decides to fight you as the ai player,plus theres gonna be an independant ai player whos going to randomly kick some ones ass whether you like it or not.
Im not bothered about people creating fake accounts to play ai matches with, as this just gives more choice to the normal players and theres nothing stopping anyone from wiping the fake ai accounts of cash from prolong attacking,plus theres also a good chance of the fake ai player winning.
Ive still got a few things to do until all the ai training cash side is worked out.
The normal head to head fighting wont be affected at all from the results of training matches apart from the level you are on is the level graphics used when playing head to head.(head to head fights are totally fair you both have the same stats)
LOL i may have to write a manual at the rate this game is going.