Points Calculation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5194

    Good evening!

    I wanted to thank you again for the help that you gave in dealing with the team color issue I was having.

    The league that contracted me to build their website has come up with a standings calculation that is somewhat complex, but it boils down to this:

    1. Each win is worth 1 point.
    2. If a team only plays its opponent one time during the season, then that win is worth an additional point.

    Example:
    Team A plays Team B twice: 1 point per win.
    Team A plays Team C once: 2 points for win.

    I set up the games to be “Conference” games if they play each other once. This will give them a special highlight on the schedule, but I would like the points to calculate according to this rule:
    $new_points = Wins * Pts_For_Win + Conf_Wins * Pts_For_Win

    Does the filter accept and recognize the Conf_Wins variable when calculating points?

    #5195
    Mark
    Keymaster

      Hummm, the plugin only handles fairly ‘standard’ points calculations. I’ve since found there are many ‘unique’ points calculations. It does however support overtime wins (for the NHL originally). So you might try to use OT Wins instead of conference wins. Then you’d have to update the records manually, i.e., uncheck Auto-fill Standings.

      -Mark

      #5196

      So Conf_Wins is not an acceptable variable for the $new_points filter?

      #5197
      Mark
      Keymaster

        Oh sure, you can use the MSTW_LM_POINTS_CALC filter and have at it. I was just giving you a way I think would work without having to write code.

        -Mark

      Viewing 4 posts - 1 through 4 (of 4 total)
      • You must be logged in to reply to this topic.