Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Formula for leaderboard  (Read 3518 times)
0 Members and 1 Guest are viewing this topic.
Offline markmistry

Junior Devvie

« Posted 2009-05-21 20:12:31 »

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.
Offline Json

Junior Devvie

Exp: 7 years

« Reply #1 - Posted 2009-05-22 07:08:20 »

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
Offline Wildern

Junior Devvie

« Reply #2 - Posted 2009-05-22 11:40:15 »

I believe he is looking for a way to rank players based on game wins/losses.
These two articles might be good starting points.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Darrin

Junior Devvie

Projects: 1

« Reply #3 - Posted 2009-05-22 12:48:41 »

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.

Offline markmistry

Junior Devvie

« Reply #4 - Posted 2009-05-22 15:16:48 »

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  Grin haha
Offline pjt33

« JGO Spiffy Duke »

Medals: 40
Projects: 4
Exp: 7 years

« Reply #5 - Posted 2009-05-26 14:25:53 »

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.
Offline markmistry

Junior Devvie

« Reply #6 - Posted 2009-05-26 18:20:51 »

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.
Pages: [1]
  ignore  |  Print  

DesertCoockie (33 views)
2018-05-13 18:23:11

nelsongames (75 views)
2018-04-24 18:15:36

nelsongames (70 views)
2018-04-24 18:14:32

ivj94 (752 views)
2018-03-24 14:47:39

ivj94 (82 views)
2018-03-24 14:46:31

ivj94 (622 views)
2018-03-24 14:43:53

Solater (98 views)
2018-03-17 05:04:08

nelsongames (179 views)
2018-03-05 17:56:34

Gornova (405 views)
2018-03-02 22:15:33

buddyBro (1065 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!