I hereby claim:
- I am dhilgaertner on github.
- I am dhilgaertner (https://keybase.io/dhilgaertner) on keybase.
- I have a public key ASCGSOB4W1DITGYsWSmB-Q3z6RkuQ0RWAyiVhUdKayllpQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# @param [int] position - This is the position you finished in. (ex. 1, 2, 3, 4, 5, 6, 7) | |
# @param [int] wager - This is the ante for the table. (ex. 0, 100, 500, 2000, etc) | |
# @param [int] entries - This is the number of players that started the game. (ex. 1, 2, 3, 4, 5, 6, 7) | |
# @return [int] - This function returns the resulting points change given the position, ante, and number of players | |
def self.calc_delta_points(position, wager, entries) | |
real_wager = wager == 0 ? 25 : wager | |
first_bonus = (entries - 1) * 25 | |
if (entries > 3) | |
prize_pot = ((entries - 2) * real_wager) |