Author Topic: points formula help  (Read 2954 times)

BT

  • Newbie
  • *
  • Posts: 1
    • View Profile
points formula help
« on: February 19, 2022, 01:44:49 PM »
I hope this isn't too complicated
any help will be greatly appreciated

biweekly game 
anywhere from 30 - 45 players
players get 3 points for playing
rank 10-18 get 2 more points (5 total)
9= +6 (9 points total)
8= +8 (11 points)
7= +10 (13 points)
6= +12 (15 total)
5= +14 (17 total)
4= +16 (19total)
3= +20 (23 total)
2= +24 (37 total)
1= +29 (32 total)
plus, one point for each knockout

looking forward to any help

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: points formula help
« Reply #1 on: February 22, 2022, 02:49:47 PM »
Several ways.  Simplest:

switch(rank, 1, 32, 2, 27, 3, 23, 4, 19, 5, 17, 6, 15, 7, 13, 8, 11, 9, 9, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 5, 3)

Little bit fancier:

3 + if(rank < 19, lswitch(19 - rank, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 8, 10, 12, 14, 16, 20, 24, 29))

Little more complicated:

3 + if(rank < 19, 2) + if(rank < 10, lswitch(10 - rank, 4, 6, 8, 10, 12, 14, 18, 22, 27))

And a little more complicated:

3 + if(rank < 19, 2) + if(rank < 10, 2 + (10 - rank) * 2) + if(rank < 4, (4 - rank) * 2) + if(rank = 1, 1)

They all award the same points, so use whichever you want.  The first is the most straightfoward, as it is basically just stating the points for each rank from 1st through 18th.  The last one, while maybe a little more complicated, is actually more indicative of how points are awarded.  Default 3 points, plus 2 more for placing 18th or better, plus a few more for ranks 4 through 10, plus a few more for 1st through 3rd, plus a bonus point for 1st.

jzallen

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: points formula help
« Reply #2 on: April 20, 2022, 09:09:58 PM »
What about awarding points for knockouts?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: points formula help
« Reply #3 on: April 21, 2022, 02:35:30 PM »
What about awarding points for knockouts?

Oh right, I guess I forgot that part.  Just add +nh or +numberOfHits.

jzallen

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: points formula help
« Reply #4 on: April 21, 2022, 03:06:28 PM »
and for those of us less smart how do I assign a points value for that? say 1 point per knockout. +nh1?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: points formula help
« Reply #5 on: April 21, 2022, 11:46:06 PM »
nh or numberOfHits represents the number of hits or knockouts by the player.  So if you want to add 1 point per knockout, just add numberOfHits.  For 2 points per knockout, you would use +numberOfHits*2.  For 3 points, +numberOfHits*3.  Etc.

jzallen

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: points formula help
« Reply #6 on: April 22, 2022, 08:41:10 AM »
thank you Cor

my club added one more curveball, they want the points for hits to only be at the 10 handed final table. isn't that something like players<10?

jzallen

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: points formula help
« Reply #7 on: April 22, 2022, 09:11:22 AM »
and while I have you, if you could just whip me up this whole formula, I'd appreciate it!

1st = 500
2nd = 700
3rd = 500
4th = 400
5th = 350
6th = 300
7th = 250
8th = 200
9th = 150
10th = 100
11th - 15th = 50
16th - 20th = 25
20th=30th = 10
31st + = 5

at the final table (10 players) you are awarded 100 points per knockout

What's that whole formula look like?

Thanks Corey!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: points formula help
« Reply #8 on: April 22, 2022, 02:17:42 PM »
thank you Cor

my club added one more curveball, they want the points for hits to only be at the 10 handed final table. isn't that something like players<10?

Yep.  + if(r < 11, nh * 100) for example.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: points formula help
« Reply #9 on: April 22, 2022, 02:18:22 PM »
1st = 500
2nd = 700
3rd = 500
...

1st wins less than 2nd?

jzallen

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: points formula help
« Reply #10 on: April 22, 2022, 05:58:06 PM »
Oops! First is 1000

jzallen

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: points formula help
« Reply #11 on: April 24, 2022, 09:41:44 AM »
Hating that I lost my computer with all this saved in a fire!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: points formula help
« Reply #12 on: April 26, 2022, 09:54:12 PM »
5 + if(r < 31, 5) + if(r < 20, 15) + if(r < 16, 25) + if(r < 11, (11 - r) * 50 + nh * 100) + switch(r, 3, 50, 2, 200, 1, 450)

jzallen

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: points formula help
« Reply #13 on: April 28, 2022, 12:17:40 PM »
5 + if(r < 31, 5) + if(r < 20, 15) + if(r < 16, 25) + if(r < 11, (11 - r) * 50 + nh * 100) + switch(r, 3, 50, 2, 200, 1, 450)

I get everything up to rank of 16, but after that I can't make the math work.  1st is 1000 points. the formula looks like it does rank minus 11 * 50 which is -500.

10th is 100 and that formula looks like it awards -50.

am I reading it wrong?
these are my points awarded:
1st = 1000
2nd = 700
3rd = 500
4th = 400
5th = 350
6th = 300
7th = 250
8th = 200
9th = 150
10th = 100
11th - 15th = 50
16th - 20th = 25
20th=30th = 10
31st or more is 5 points

100 bonus points are awarded to anyone who knocks out a player at the final table of 10.

Sorry to be a pain, I am just not good at formulas.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: points formula help
« Reply #14 on: April 28, 2022, 03:17:28 PM »
Here are the points awarded through 50th place:

 1     1,000.00
 2       700.00
 3       500.00
 4       400.00
 5       350.00
 6       300.00
 7       250.00
 8       200.00
 9       150.00
10       100.00
11        50.00
12        50.00
13        50.00
14        50.00
15        50.00
16        25.00
17        25.00
18        25.00
19        25.00
20        10.00
21        10.00
22        10.00
23        10.00
24        10.00
25        10.00
26        10.00
27        10.00
28        10.00
29        10.00
30        10.00
31         5.00
32         5.00
33         5.00
34         5.00
35         5.00
36         5.00
37         5.00
38         5.00
39         5.00
40         5.00
41         5.00
42         5.00
43         5.00
44         5.00
45         5.00
46         5.00
47         5.00
48         5.00
49         5.00
50         5.00


This part of the formula includes adding 100 points per hit for the top 10 places:

if(r < 11, (11 - r) * 50 + nh * 100)

The formula is sort of cumulative.  For example, a player ranking 1st place will match all of the if() conditions.  So I started at 30th place and worked backwards.  Everyone gets 5 points.  Anyone finishing 30th or better gets 5 additional points.  Anyone finishing 19th or better gets 15 more points.  Anyone finishing 15th or better gets 25 more points.  Anyone finishing 10th or better gets 50 more points per place (so 10th gets 50 additional points, 9th gets 100 additional points, 8th gets 150 additional points, etc).  Here I also included the 100 points per hit since it also only applies to 10th place or better.  Finally, 1st, 2nd and 3rd get additional points to reach 1000, 700, and 500 points respectively.

So 1st place gets 5 points, plus 5 more for being 30th place or better, plus 15 more for being 19th place or better, plus 25 points for being 15th place or better, plus 500 points for being 1st place (50 * 10 = 500; 10 being 11 minus rank), plus 450 points for being first place.  5 + 5 + 15 + 25 + 500 + 450 = 1000.

FYI I made a judgement call and gave 20th place 10 points instead of 25, since it's listed twice.  If you want 20th place to get 25 points just change the if(r < 20 to if(r < 21.