The Tournament Director Forums

Main => Help Me => Topic started by: D71J on February 19, 2011, 04:12:54 AM

Title: new formula needed
Post by: D71J on February 19, 2011, 04:12:54 AM
Hi guys,

I would like to change the formula I use for our pokerleague. For the moment I'm using the following code for points:

assign("half", floor(n/2))
if(r <= half, round(38 * pow(1.1, half - r)))

With this formula half the players get points. I would like to change that to all people getting points, starting with
the first one to drop out -> 10points.  Then I want the following to get 10% more points then the previous one.
The people who reach the final table (9 people) should get bonuspoints for getting this far: ex. 9 -> 20p, 8 -> 40p,
7 -> 70p, 6 -> 110p, 5 -> 160p, 4 -> 220p, 3 -> 310p, 2 -> 410p, 1 -> 520p.

Can anyone help me with this?
Title: Re: new formula needed
Post by: Magic_fubu on February 19, 2011, 08:26:47 AM
If "half" does that for the top half, then you should be able to go "round(38 * pow(1.1, r)"

But if not, then I'm not too sure.
Title: Re: new formula needed
Post by: D71J on February 19, 2011, 08:53:45 AM
That doesn't seem to be it, Magic. I don't get any points shown with that formula.
Title: Re: new formula needed
Post by: D71J on February 19, 2011, 09:24:01 AM
found it: round(10 * pow(1.2, n - r))
Title: Re: new formula needed
Post by: Magic_fubu on February 19, 2011, 09:45:58 AM
Glad to hear you got it figured out :)  sorry i wasn't more help for you.
Title: Re: new formula needed
Post by: D71J on February 19, 2011, 09:53:14 AM
I'm not quite there yet, Magic. I think I need a second part of code that will give the players on the final table
their bonuspoints. I have no idea how to do that.
Title: Re: new formula needed
Post by: TIMMER on February 19, 2011, 11:29:53 AM
I'm not quite there yet, Magic. I think I need a second part of code that will give the players on the final table
their bonuspoints. I have no idea how to do that.
Have you tried adding this at the end       + finalTable    or something like   +switch(r, 9, 20, 8, 40, 7, 70, 6, 110, 5, 160, 4, 220, 3, 310, 2, 410, 1, 510)
Title: Re: new formula needed
Post by: Magic_fubu on February 19, 2011, 11:31:03 AM
how do you want for final table bonus points distributed? If you know that, then we can get you finished with the formula :)
Title: Re: new formula needed
Post by: D71J on February 19, 2011, 02:24:25 PM
I'm not quite there yet, Magic. I think I need a second part of code that will give the players on the final table
their bonuspoints. I have no idea how to do that.
Have you tried adding this at the end       + finalTable    or something like   +switch(r, 9, 20, 8, 40, 7, 70, 6, 110, 5, 160, 4, 220, 3, 310, 2, 410, 1, 510)

The switch-thing works perfectly, TIMMER. Thx very much!