guitarclap
asked on
Poker Tournament Payout Equation
I would like to have an equation or an algorithm to calculate the % of tournament winnings paid to players.
For instance if there are only 3 players paid out of X players in a tournament:
1st: 50%
2nd: 35%
3rd: 15%
But I don't want to have to store all of these values in an array or database and would like the payouts to be able to go as high as 100 places. It would be nice to be able to call a function like "getPayouts (50)" and it returns an array of all the payout % for 1st through 50th place.
I have somethign like this but as you will see it can get lengthy:
$payouts = array (
0 => array (),
1 => array (100),
2 => array (70, 30),
3 => array (50, 30, 20),
4 => array (45, 28, 17, 10),
5 => array (40, 25, 15, 11, 9),
6 => array (34, 23, 15, 11, 9, 8),
7 => array (31, 21, 15, 11, 9, 7, 6),
8 => array (30, 20, 14, 10, 8, 7, 6, 5),
9 => array (29, 18, 13, 10, 8, 7, 6, 5, 4),
10 => array (28, 17, 12, 10, 8, 7, 6, 5, 4, 3)
);
where the index is the number of places to payout and the values the %
any suggestions?
For instance if there are only 3 players paid out of X players in a tournament:
1st: 50%
2nd: 35%
3rd: 15%
But I don't want to have to store all of these values in an array or database and would like the payouts to be able to go as high as 100 places. It would be nice to be able to call a function like "getPayouts (50)" and it returns an array of all the payout % for 1st through 50th place.
I have somethign like this but as you will see it can get lengthy:
$payouts = array (
0 => array (),
1 => array (100),
2 => array (70, 30),
3 => array (50, 30, 20),
4 => array (45, 28, 17, 10),
5 => array (40, 25, 15, 11, 9),
6 => array (34, 23, 15, 11, 9, 8),
7 => array (31, 21, 15, 11, 9, 7, 6),
8 => array (30, 20, 14, 10, 8, 7, 6, 5),
9 => array (29, 18, 13, 10, 8, 7, 6, 5, 4),
10 => array (28, 17, 12, 10, 8, 7, 6, 5, 4, 3)
);
where the index is the number of places to payout and the values the %
any suggestions?
ASKER
Typo. Sorry.
If I knew the algorithm then obviously I wouldn't be here. There are a few ways to attack this and I am looking for some input from other people to get those creative juices flowin`
If I knew the algorithm then obviously I wouldn't be here. There are a few ways to attack this and I am looking for some input from other people to get those creative juices flowin`
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
RQ...
Bravo!
You have answered a few of my questions in the past (i think, or have commented on them -- recognize your name!!) and you seem to come through yet again. This is EXACTLY what I was looking for -- a step in the right direction. I will tinker with it some more but you have given me a great start!
Bravo!
You have answered a few of my questions in the past (i think, or have commented on them -- recognize your name!!) and you seem to come through yet again. This is EXACTLY what I was looking for -- a step in the right direction. I will tinker with it some more but you have given me a great start!
ASKER
I am goign to leave the question open incase I have any questions or if someone else would like to put their 2 cents in :)
The winnings are NOT weighted to any one person.
You could add weightings so that more of the winnings go to the winner. It is all about determining the number of shares you have to distribute and the number of shares each winner gets.
You could add weightings so that more of the winnings go to the winner. It is all about determining the number of shares you have to distribute and the number of shares each winner gets.
> For instance if there are only 3 players paid out of X players in a tournament:
>
> 1st: 50%
> 2nd: 35%
> 3rd: 15%
>
> 3 => array (50, 30, 20),