D
Daniel
Hi guys
I have a requirment to calculate a prize pool for a competiton similar to a
poker tournament. But i am stuck on best ways or even if i have the right
ideas, so:
Players pay to play, total paid is prize pool and is distributed to top 3 or
so winners.
Variables are number of players who will win, if a lot enter i increase
number of winners. i think a standard top 30% rounded off would work for
calculating paid positions? So 10 players. 30% would be 3 of them (rounded)
Now to calculate the actual amount of prize each gets i'd like to be able to
vary it. So i could offer or be versatile enough to offer different
distribtuions. Such as, a winner takes all, a top 2 get the most and then
3rd gets a fair bit less, or a 4 out of 10 get prizes.....etc
Also i'd like to be able to offer prizes where say first place can get cash
AND a car for example. But other 2 places just cash etc etc
This is where i am stuck, do i go for a hard coded table in database and
read off it when my prog loads into a struct and just reference that when
doing calculations? One way forward, but then if a number of players enters
that i havent accounted for, then what?
Alternatively as i said above i calculate winning positions based on a % but
then how do idecide which of those positions wins what?
Very stuck and confused, i keep thinking this must be simple. any ideas or
pointers welcome?
Thanks
I have a requirment to calculate a prize pool for a competiton similar to a
poker tournament. But i am stuck on best ways or even if i have the right
ideas, so:
Players pay to play, total paid is prize pool and is distributed to top 3 or
so winners.
Variables are number of players who will win, if a lot enter i increase
number of winners. i think a standard top 30% rounded off would work for
calculating paid positions? So 10 players. 30% would be 3 of them (rounded)
Now to calculate the actual amount of prize each gets i'd like to be able to
vary it. So i could offer or be versatile enough to offer different
distribtuions. Such as, a winner takes all, a top 2 get the most and then
3rd gets a fair bit less, or a 4 out of 10 get prizes.....etc
Also i'd like to be able to offer prizes where say first place can get cash
AND a car for example. But other 2 places just cash etc etc
This is where i am stuck, do i go for a hard coded table in database and
read off it when my prog loads into a struct and just reference that when
doing calculations? One way forward, but then if a number of players enters
that i havent accounted for, then what?
Alternatively as i said above i calculate winning positions based on a % but
then how do idecide which of those positions wins what?
Very stuck and confused, i keep thinking this must be simple. any ideas or
pointers welcome?
Thanks