Author Topic: Little Help Needed  (Read 3415 times)

hemi 06

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Little Help Needed
« on: January 24, 2007, 09:05:13 AM »
Hey guys,
 I am having a mock WSOP with 12 events ranging in buy-in from $50-$150.
I want to have player of the year points, but cant figure it out.

In a $50 tournament, I want 5 points from every participant to go into the pool and everyone that cashes receives points based on their finish.
Same with a $100 tournament,  10 points from every player
$150 = 15 points from every player.

Can anyone give me a formula for each.
( I don't know how many players will be playing each event.)

                                 Thanks

tandemrx

  • Sr. Member
  • ****
  • Posts: 347
    • View Profile
Re: Little Help Needed
« Reply #1 on: January 24, 2007, 09:19:27 AM »
I think we would need to know how many people will cash out in each tourney (how many people to give points to) and how you want the points divided between the ranks of individuals who do receive a cash prize.

So in a $50 dollar tourney, say you have 20 people playing.  With your requirments, there would be a total of 100 points to give out, but we would need to know how you want those points divided up (how many of the 20 would get points, and how you would want the 100 points divided amongst those who would get points).

Are you using some automatic prize allocation?  Like the default one with the tourney?

hemi 06

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Little Help Needed
« Reply #2 on: January 24, 2007, 10:49:23 AM »
I don't know if this helps, but this is our payout structure.  It can be used as the points payout also.

8 Players
1st - 50%
2nd - 30%
3rd - 20%

9-12 Players
1st - 40%
2nd - 25%
3rd - 20%
4th - 15%

13 players or More
1st - 40%
2nd - 25%
3rd - 20%
4th - 10%
5th - 5%

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Little Help Needed
« Reply #3 on: January 24, 2007, 11:19:37 AM »
if(n < 9,
  if(r==1, (round(bc / 10) * n) *.5) + if(r == 2, (round(bc / 10) * n) * .3) + if(r == 3, (round(bc / 10) * n) * .2),
  0)

+ if(n > 8 && n < 13,
  if(r==1, (round(bc / 10) * n) *.4) + if(r == 2, (round(bc / 10) * n) * .25) + if(r == 3, (round(bc / 10) * n) * .2) + if(r == 4, (round(bc / 10) * n) * .15),
  0)

+ if(n > 12,
  if(r==1, (round(bc / 10) * n) *.4) + if(r == 2, (round(bc / 10) * n) * .25) + if(r == 3, (round(bc / 10) * n) * .2) + if(r == 4, (round(bc / 10) * n) * .10) + if(r == 5, (round(bc / 10) * n) * .05),
  0)

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Little Help Needed
« Reply #4 on: January 24, 2007, 11:58:54 AM »
btw, just a little preview.  The next version will have two added formula functions: switch() and assign()

switch() will help to eliminate a bunch of if() statements:

if(r==1, 50,0) + if(r==2, 30, 0) + if(r==3, 10, 0) + if(r==4, 7, 0) + if(r==5, 3, 0)

can be expressed as:

switch(r, 1, 50, 2, 30, 3, 10, 4, 7, 5, 3, 0)


assign() will allow you to assign values to your own variables and use them.  So, in the formula above I use the expression (round(bc / 10) * n) over and over.  assign() will allow you to assign that value to your own variable and then reference the variable instead.  (Multiple statements can actually already be used, by the way...)

assign("pp", (round(bc / 10) * n))

So, the formula in the previous post can be knocked down to:

assign("pointspool", round(bc / 10) * n);
if(n < 9, assign("percentage", switch(r, 1, .5, 2, .3, 3, .2, 0)));
if(n > 8 && n < 13, assign("percentage", switch(r, 1, .4, 2, .25, 3, .2, 4, .15, 0)));
if(n > 12, assign("percentage", switch(r, 1, .4, 2, .25, 3, .2, 4, .10, 5, .05, 0)));
pointspool * percentage;

hemi 06

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Little Help Needed
« Reply #5 on: January 24, 2007, 04:42:32 PM »
I am so sorry Corey,
 
   What i meant was not 50, 100, and 150 buy-in, but 5, 10, and 15.


 $5 game = 5 pts. per player and so on.  Using the same structure.   I apoligize.

  Is there anyway you could give me the changed formulas.   Thanks
« Last Edit: January 25, 2007, 10:35:47 AM by hemi 06 »

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Little Help Needed
« Reply #6 on: January 25, 2007, 11:19:31 AM »
if(n < 9,
  if(r==1, bc *.5) + if(r == 2, bc * .3) + if(r == 3, bc * .2),
  0)

+ if(n > 8 && n < 13,
  if(r==1, bc *.4) + if(r == 2, bc * .25) + if(r == 3, bc * .2) + if(r == 4, bc * .15),
  0)

+ if(n > 12,
  if(r==1, bc *.4) + if(r == 2, bc * .25) + if(r == 3, bc * .2) + if(r == 4, bc * .10) + if(r == 5, bc * .05),
  0)


hemi 06

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Little Help Needed
« Reply #7 on: January 25, 2007, 10:36:43 PM »
Corey,

     I want the points to equal the amount of money in the game.
If 10 players buy-in for $10 dollars apeice, I want all the points to add up to 100
Same with a $5 or $15 buy-in.

With the last formula u gave me, it was just adding up to 5, 10, or 15.

tandemrx

  • Sr. Member
  • ****
  • Posts: 347
    • View Profile
Re: Little Help Needed
« Reply #8 on: January 26, 2007, 12:49:00 AM »
Hemi 06,

I think it is useful to take a look at the forumula and see what it is doing so you can manipulate it to your own needs.  You may even want to change the formula at some point and therefor if you look at the code you can figure out what is going on and even though it looks complicated you could then set up your own formula.

So, you can see that in Corey's last formula, he sets up a condition where if there are less than 9 players ("n<9", where "n" equals the number of people in the tourney) then 1 of three things will happen:

if a person's rank = first place ("r==1"), then the amount of points given is set up to be the buy-in cost * .5 ("bc*0.5"), meaning that the person who gets first place will get the amount of points equal to the buy-in cost (say $10) times .5 (or 50%).  The conditions for 2nd and 3rd place are similarly set up.

So, what you are looking for instead is that the person in first place to get an amount of points equal to their buy-in cost (bc) times the number of players (n) times 0.5 (50%). or "if(r==1, bc*n*0.5).

So, all you have to do to change that equation that Corey wrote is to change each of the expressions to include a muliplier of the number of players in the tourney (n) to each equation.

So, in the end, your equation would look like this:

if(n < 9,
  if(r==1, bc*n *.5) + if(r == 2, bc*n * .3) + if(r == 3, bc*n * .2),
  0)

+ if(n > 8 && n < 13,
  if(r==1, bc*n *.4) + if(r == 2, bc*n * .25) + if(r == 3, bc*n * .2) + if(r == 4, bc*n * .15),
  0)

+ if(n > 12,
  if(r==1, bc *n*.4) + if(r == 2, bc*n * .25) + if(r == 3, bc*n * .2) + if(r == 4, bc*n * .10) + if(r == 5, bc*n * .05),
  0)

Does this make sense to you?  Do the other equations make sense to you (such as when you have 9-12 players, or as Corey has set up in the equation "if(n>8 && n<13)"?

I guess I am saying that it is useful to learn how these equations work so you can change them and modify them to suit your needs.

hemi 06

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Little Help Needed
« Reply #9 on: January 26, 2007, 08:54:03 AM »
Thank you, and yes I am getting to where I understand them a little better.  Thanks for your help and Corey's also.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Little Help Needed
« Reply #10 on: January 26, 2007, 02:48:26 PM »
Oops, sorry, I think that was just a goof.  As tandemrx said, just add the "*n" to each of those expressions...

One last thing to note (not to confuse you any more).  Because the points aren't calculated in a "pool" like the prize pool, if you have any players who tie/chop within the money positions, the prize pool will be divided properly, but the points won't.

In other words, you're looking to have an amount of points equal to the amount of money in the pot.  When players tie/chop, the software knows how much is in the prize pool and divides it properly.  However, because you are awarding a percentage of a calculated points amount (rather than from a "pool"), you could award more points than you intended.

For example:
If the buy-in were $10 and you had 10 players, you'd get a prize pool of $100.  According to your points formula, you also want to award 100 points.

According to your description, you'll award 40% (of both the prize pool and the points total) to 1st place, 25% to 2nd, 20% to 3rd, and 15% to 4th.  That works out like this:

1st: $40 and 40 points
2nd: $25 and 25 points
3rd: $20 and 20 points
4th: $15 and 15 points

Very straightforward.  But let's say the last two players in the tournament decide to chop (evenly).  That means they will both tie for 1st place.  The TD knows that both players will split both 1st and 2nd place prizes, so you'll get to divide $65 between them.  Then you'll get:

1st: $32.5 and 40 points (each of the two players gets this)
3rd: $20 and 20 points
4th: $15 and 15 points

This is fine for the prize pool, because it still adds up to exactly $100.  However, the points formula simply sees that both of the top 2 players got 1st place, so it awards them both 40 points.  The points total is now 115.

You can correct this, if you care, by editing the players and awarding a negative point value.  By adding, for example, -7.15 points (negative) to each of the top 2 players, they'll get 32.5 points each instead of 40, bringing the points total back to 100.

hemi 06

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Little Help Needed
« Reply #11 on: January 28, 2007, 10:46:58 PM »
   If any of our players want to chop, they can chop the money.  But they then have to playe out a quickened heads up game for the points.   And by the way, thanks.