1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Help with score algorithm

Discussion in 'Miscellaneous' started by BorderKeeper, Feb 17, 2013.

Mods: BlueLuigi
  1. BorderKeeper

    BorderKeeper Tree Planter

    Messages:
    37
    Hey guys,

    I've run into bit of a pickle with my order system on http://www.arthurianleague.net/Statistics.

    Basically you have a table with name - kills - deaths - suicides, so for instance ...
    name kills deaths suicides
    xCUBE Maverick 49 22 4
    [BoW] GalenMarek 49 59 10
    ...
    Right now I am using equation ((kills/deaths)*((kills+deaths+1)/100)). Which orders it like this...
    • (kills/deaths) = K/D Ratio. Order mainly by this.
    • ((kills+deaths+1)/100)) = Avoid putting people with great K/D, but not enough kills (Something like 12 kills and 1 death).
    • Take Suicides in account.
    The table after ordering will spew out lets say ...
    name kills deaths suicides K/D Ratio
    xCUBE Maverick 49 22 4 2.23
    [BoW] Ream 58 46 12 1.26
    [BoW] Kalikst 18 4 0 4.50
    xCUBE Boxpipe 31 16 1 1.94
    [BoW] GalenMarek 49 59 10 0.83
    [BoW] Blacky 33 22 6 1.50
    [BoW] Freddex 32 37 4 0.86
    xCUBE Monsteri 25 22 3 1.14
    [BoW] HardPenguin 24 36 9 0.67
    [BoW] Juaro 20 22 2 0.91
    How to modify the equation for my purposes?
    Thanks, BorderKeeper
     
  2. tmewett5

    tmewett5 Shark Slayer

    Messages:
    17
    cacea came up with this small change: (kills/deaths)*((kills+deaths)/deaths)
     
Mods: BlueLuigi