DarkZonk wrote:Programm seems to do wrong equilations.
I found the problem. The 3'rd party software I use gives me number of pats won/tied rather than equity and I have to do equity calculations myself.
This is easy in heads up pots but in multiway pots, ties cause all sorts of problems. The problem is that I don't fully know which players tied the pots for each combination. The old code (with the bug) just divided the number of tied pots with the number of players in the pot. This works for heads up pots but is messed up for multiway pots.
For example, player A has 100 ties, player B has 100 ties and player C has 10 ties out of total hand combinations 200 (bogus example)
Assuming 90 of these ties are heads up between A & B and the other 10 are 3 way, the correct tie equity for player A is:
90/2/200 + 10/3/200 = 24.1666%
Problem is I can't assume this because in some strange situations, A could have some ties with B only and some ties with C only.
Because of this, I use approximate:
100 / (210 / 100) / 200= 23.8%
210 / 100 is the average number of players in a tie.
If anyone can find a flaw or a better way to do this given the input, please chime in.
Fix will be uploaded soon.