Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
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 2460 times)
0 Members and 1 Guest are viewing this topic.
Offline markmistry

Junior Member





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

Junior Member


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 Member





« 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.
http://en.wikipedia.org/wiki/FIFA_World_Rankings
http://en.wikipedia.org/wiki/Elo_rating_system
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Darrin

Junior Member


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 Member





« 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
« 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 Member





« 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  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (38 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (34 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (48 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!