Author Topic: Can someone help me with a points formula?  (Read 1510 times)

joybulb

  • Newbie
  • *
  • Posts: 3
    • View Profile
Can someone help me with a points formula?
« on: January 05, 2010, 07:29:54 PM »
I need a formula that awards 20 points to 1st, 18 to 2nd, 16 to 3rd, 14 to 4th, 12 to 5th, 10 to 6th, and  2 points to every other player. I'm assuming that to have this change with the number of players would be more complicated that its worth, so I don't need that. Can anyone help me with this?
If anyone has something similar to this already made and wouldn't mind sharing it I would be greatful.  Thanks, Ryan

Johno

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • The Poker Leaderbaord
Re: Can someone help me with a points formula?
« Reply #1 on: January 06, 2010, 08:11:45 AM »
(switch(r, 1, 20, 2, 18, 3, 16, 4, 14, 5, 12, 6, 10) + if(r > 6, 2))


To have it change by the number of players, how exactly do you mean. There are some clever minds around here.
My League Website - Joomla Component for TD. Now available for Joomla 1.5, 1.7 & 2.5

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6220
    • View Profile
Re: Can someone help me with a points formula?
« Reply #2 on: January 06, 2010, 09:51:37 AM »
if(r < 7, (11 - r) * 2, 2)

We could make the assumption you were awarding 2 X the number of players to 1st place, and then 2 points less for each subsequent rank, and only awarding the top 6 ranks, in which case the formula would become:

if(r < 7, (n - r + 1) * 2, 2)

That would "change with the number of players".  Just an example.

Johno

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • The Poker Leaderbaord
Re: Can someone help me with a points formula?
« Reply #3 on: January 06, 2010, 03:43:34 PM »
Mine still works :P
My League Website - Joomla Component for TD. Now available for Joomla 1.5, 1.7 & 2.5

joybulb

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Can someone help me with a points formula?
« Reply #4 on: January 08, 2010, 07:06:32 PM »
Wow, guys It may not seem like much, but I appreciate this a bunch.  I'm so bad at math, I never would have figured that out. Again, Thanks!