WordPress.org

Ready to get started?Download WordPress

Forums

Football Pool
Score calculation (2 posts)

  1. impaelas
    Member
    Posted 7 months ago #

    Hi,

    I am having problems displaying proper leaderboard summary. I have several customers with same number of points and haven't changed the rules (
    When multiple players have the exact same amount of points, then the following sorting rules are applied on the ranking (most important one at the top):
    number of correct match results;
    number of correct correct scores;
    number of correct bonus questions.

    My points are awarded like this:
    Match result 2
    Correct score 5
    Goal difference bonus 1
    Bonus question 5

    Problem is that regardless:
    if for match results I count only match results (count those with 2 points) leaderboard is wrong.
    if for match results I count only match results and 1 potential joker match (count those with 2 points and 4 points) leaderboard is wrong.
    if for match results I count only match results and 1 potential joker match and potential goal difference bonus (count those with 2 points, 4 points, 3 points and 6 points) leaderboard is wrong.
    if for match results I count only match results and 1 potential joker match and potential goal difference bonus and count correct score ones (count those with 2 points, 4 points, 3 points, 6 points, 5 points and 10 points) leaderboard is wrong (this is not a likely scenarion but i tried nevertheless).

    What is the logic in calculating the leaderboard for those with same number of points as none of these seem to be applicable.

    Thank you.

    P.S. Beautiful plugin

    https://wordpress.org/plugins/football-pool/

  2. AntoineH
    Member
    Plugin Author

    Posted 7 months ago #

    The logic in the ranking order (when users have the same amount of points) is based on

    1. amount of full scores (e.g. match result is 2-0 and user predicted 2-0),
    2. amount of toto scores (e.g. match result is 2-0 and user predicted 1-0)
    3. and amount of correct bonus questions.

Reply

You must log in to post.

About this Plugin

About this Topic