• Hi,

    Can somebody help to rewrite extension plugin “football-pool-extension-change-ranking-order.php”

    If users end up with same amount of points, then I want that user who has least 0 point predictions, is on top in ranking. So I want that most stable predictor wins. For example, it’s better to get 3+3 than 6+0 points.

    And if 0 are even, then goal dif is better than full score. For example 0,4,4,4 is better than 0,3,3,6.

    (3-toto, 4-goal dif, 6-full score)

    Probably its really easy for someone, who knows how to code, unfortunately I don’t.

    Thanks in advance.

    https://www.ads-software.com/plugins/football-pool/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tarmost

    (@tarmost)

    Anybody?

    if the plugin supports floating points in numbers you may just do the mathematics instead of coding. You have to assign an additional point for each match scoring criteria (e.g. full,toto,goal diff etc.). In case of your pool, if you add a sufficiently positive small 0.k to 3,4, and 6 to become 3.k, 4.m, and 6.n
    Note: m and n should be also sufficiently small. I explain this “sufficiently small” in the end.

    your rules can be set by this parameters as below:
    if n>m>k full score has advantage to goal diff and goal diff to toto
    if k>m>n full score has less advantage to goal diff and goal diff to toto

    there can be 9 advantage formulas based on changing this parameter relations from being greater to equal or smaller.

    sufficiently small rules:
    rule #1: if your league has less than 100 matches your sufficiently small number would be 0.09 , and in general if M be number of matches your k must be greater than 1/(M*10) and smaller than 1/M
    1/(10*M) < k < 1/M where M = number of total matches
    rule #2: the two smallest among {k,m,n} must be less than k minus inverse difference of their relative criteria. In your case for example. sufficiently small k,m, and n would be k=0.09 (assuming your pool has less than 100 matches); m = 0.07 which is less than 0.009 – (4-3)/(4*3) = 0.007
    and n = zero because 0.007 – (6-4)/(6*4) results in a negative number.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change ranking order’ is closed to new replies.