Author Topic: Help with a league points system?  (Read 1697 times)

Danswa

  • Newbie
  • *
  • Posts: 5
    • View Profile
Help with a league points system?
« on: January 21, 2013, 05:00:46 PM »
Hi there...I as so happy to see that this software has a League Setting, but I am not sure how to set up the points system?

I do a tournament series (about 20 tourneys) with 27-30 players each.  Each player gets 10 points for playing, if they get past 50% of the field (top 13 players) they get an additional 10 points+1 point for each player they outlast after that until the final table (9 players).  (so 13th out gets 20 pts, 12 gets 21, 11 gets 22pts, 10 gets 23pts) Each of the final 9 get an additional 10 points and 5 more points for each player they outlast (9th gets 33pts, 8th gets 38pts, etc) until the final 3.  3rd gets an additional 10, 2nd gets an additional 20 and 1st gets an additional 45 pts.

Not sure what the variables are or how to use them, but I an thing something like this?

if Place Finished is >(TotalPlayers/2), Points=10; If Place Finished is <=(Total Players/2) and >9, Points=20+[(TotalPlayers/2)-Place Finished]; If Place Finished is <=9 and >3, Points=10place points+5(9-Place finished); If PlaceFinished=3, points=4th Place points+10; If PlaceFinished=2, Points=3rd Place Points+10, if PlaceFinished=1 Points=2nd PlacePoints+25)

Or something like that?  Thanks for any help you can give me!

Dan

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Help with a league points system?
« Reply #1 on: January 22, 2013, 10:12:35 AM »
Quote
Each player gets 10 points for playing

10

Quote
if they get past 50% of the field (top 13 players) they get an additional 10 points+1 point for each player they outlast after that until the final table (9 players).

assign("half", ceil(n / 2));
10 + if(r <= half, 10 + (half - r))


Quote
Each of the final 9 get an additional 10 points and 5 more points for each player they outlast (9th gets 33pts, 8th gets 38pts, etc) until the final 3

assign("half", ceil(n / 2));
10 + if(r <= half, 10 + (half - r)) + if(r < 10, 10 + (9 - r) * 5)


Quote
3rd gets an additional 10, 2nd gets an additional 20 and 1st gets an additional 45 pts.

assign("half", ceil(n / 2));
10 + if(r <= half, 10 + (half - r)) + if(r < 10, 10 + (9 - r) * 5) + switch(r, 1, 45, 2, 20, 3, 10)


This actually doesn't work out the way your examples show, and that is because your description doesn't account for the fact that players who rank 9th or less ALSO rank less than 50% of the field, and thus they continue to receive one point for each player they best beyond 9th place.  Try the above formula and you'll see that 9th gets 34 points (instead of 33), 8th gets 40 points (instead of 38), 7th gets 46 points (instead of 43), etc.  To make this match what I think you're wanting, we have to apply further conditions to the first two sections:

assign("half", ceil(n / 2));
10 + if((r <= half) and (r > 9), 10 + (half - r)) + if(r < 10, 20 + (half - 10) + (9 - r) * 5) + switch(r, 1, 45, 2, 20, 3, 10)


I think that does what you want.

Danswa

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Help with a league points system?
« Reply #2 on: January 22, 2013, 04:10:33 PM »
So CLOSE!  Missed that for R= 3 to 9 need to specify that it is r>3  See CHANGES IN RED below...got it to work accurately through 4th place, but 1-3 got screwed up???

assign("half", ceil(n / 2));
10 + if((r <= half) and (r > 9), 10 + (half - r)) + if((r < 10) and ( r > 3), 20 + (half - 10) + (9 - r) * 5) THIS WORKED UP TO HERE, BUT THE "SWITCH" PART DIDN'T WORK FOR TOP 3?  AND I COULDN'T FIGURE IT OUT?

I think my brain short-circuited at this point...lol

Thanks so much for your help...this is really cool!

Danswa

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Help with a league points system?
« Reply #3 on: January 22, 2013, 07:01:57 PM »
Any suggestions on what to add for 1st-3rd?

Also...what if I do a bouble point tourney?  How can I make it automatically double the points?

These equations are confusing!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Help with a league points system?
« Reply #4 on: January 22, 2013, 09:14:43 PM »
Quote
Each of the final 9 get an additional 10 points and 5 more points for each player they outlast (9th gets 33pts, 8th gets 38pts, etc) until the final 3.  3rd gets an additional 10, 2nd gets an additional 20 and 1st gets an additional 45 pts.

That, to me, implied 1st through 3rd get the 10 points and 5 more points for each player they outlast (just like 4th through 9th) PLUS an additional 10 for 3rd, 20 for 2nd, and 45 for 1st.  Is that not what you want?

The "switch()" function is "switching" on the "r" variable (rank).  If r = 1, give 45; if r = 2, give 20; if r = 3, give 10.  Implied is if r does not equal 1, 2, or 3, give 0.

For a "double-points" tournament, enclose the whole thing in parentheses and multiply by 2:

assign("half", ceil(n / 2));
(10 + if((r <= half) and (r > 9), 10 + (half - r)) + if(r < 10, 20 + (half - 10) + (9 - r) * 5) + switch(r, 1, 45, 2, 20, 3, 10)) * 2

Danswa

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Help with a league points system?
« Reply #5 on: January 31, 2013, 08:02:01 PM »
Got it working...works great!  Thanks man!

Any recommendations for best/easiest sites to export individual tourneys and a running leaderboard?  I read a little on here and I know I could probably just export to an excel file and publish it as HTML to my own domain, but not sure I wanna invest in a hosting server.  I saw in the Manual about DIYPoker and others, but I'm not familiar with those sites.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Help with a league points system?
« Reply #6 on: February 04, 2013, 11:03:33 AM »
Not personally.  Besides, I wouldn't want to show any bias.  :)