Java-Gaming.org Hi !
 Featured games (84) games approved by the League of Dukes Games in Showcase (604) Games in Android Showcase (171) games submitted by our members Games in WIP (654) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 Formula for leaderboard  (Read 2670 times) 0 Members and 1 Guest are viewing this topic.
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.
Thanks
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
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.
http://en.wikipedia.org/wiki/FIFA_World_Rankings
http://en.wikipedia.org/wiki/Elo_rating_system
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.

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  haha
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.
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

You cannot reply to this message, because it is very, very old.

 bilznatch (27 views) 2015-08-04 11:03:17 SHC (44 views) 2015-08-01 03:58:20 Jesse (25 views) 2015-07-29 04:35:27 Riven (48 views) 2015-07-27 16:38:00 Riven (26 views) 2015-07-27 15:35:20 Riven (28 views) 2015-07-27 12:26:13 Riven (19 views) 2015-07-27 12:23:39 BurntPizza (42 views) 2015-07-25 00:14:37 BurntPizza (56 views) 2015-07-24 22:06:39 BurntPizza (35 views) 2015-07-24 06:06:53
 theagentd 50x wessles 48x basil_ 32x KaiHH 26x Riven 21x mooman219 17x bornander 16x orangepascal 16x ags1 16x KudoDEV 13x klaus 11x princec 11x pquiring 11x CelestialCreator 11x israelg99 9x Spasi 8x
 List of Learning Resourcesby gouessej2015-07-09 11:29:36How Do I Expand My Game?by bashfrog2015-06-14 11:34:43List of Learning Resources2015-05-31 05:37:30Intersection Methodsby Roquen2015-05-29 08:19:33List of Learning Resources2015-05-05 10:20:32How to: JGO Wikiby Mac702015-02-17 20:56:162D Dynamic Lighting2015-01-01 20:25:42How do I start Java Game Development?by gouessej2014-12-27 19:41:21
 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