Author Topic: Help with points formula.  (Read 1192 times)

Xanderz

  • Newbie
  • *
  • Posts: 2
    • View Profile
Help with points formula.
« on: April 03, 2018, 11:14:07 AM »
Hello everyone.

I'm pretty new to this programme and I want to add a point formula for my poker league.

Every player that participates gets 10 points.

And the final table should be rewarded as following:

1: 10x numbers of players in the tournament. e.x 20 players, the winner gets 200 points plus 10 points for participating.
2: 8x
3: 7x
4: 6x
5: 5x
6: 4x
7: 3x
8: 2x
9: 1x

Thanks :)


Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5612
    • View Profile
Re: Help with points formula.
« Reply #1 on: April 03, 2018, 12:07:41 PM »
10 + max(0, 10 - r + if(r = 1, 1)) * n


r is rank

n is number of players in the tournament

if(r = 1, 1) will yield 1 point if the player is ranked 1st, 0 otherwise

10 - r + if(r = 1, 1) gives the 1, 2, 3, ..., to 10 for the players ranked 9th through 1st.  For players ranked 10th or higher, the result will be a negative number.  The max(0, ...) makes sure any negative numbers are turned into zero.

Then multiply by number of players and add 10.

Xanderz

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Help with points formula.
« Reply #2 on: April 03, 2018, 12:51:02 PM »
It didn't work. :(

For example: There is 20 players in the tournament. Everyone gets 10 points and extra points go to the final table. There you get times how many players in the tournament, this example 20.

1. 10x+10 =210
2: 8x+10=170
3: 7x+ 10=150
4: 6x+10=130
5:5x+10=110
6:4x+10=90
7:3x+10=70
8:2x+10=50
9:1x+10=30
10: =10
11:=10
12=10
and so on.





Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5612
    • View Profile
Re: Help with points formula.
« Reply #3 on: April 03, 2018, 02:33:40 PM »
That is exactly what this formula does.  Your example rankings of 1st through 12th are exactly the points this formula gives.