So, I finally managed to write the code to parse range input (this was actually quite easy using the Irony parser, only problem was the lack of documentation; I will maybe write a very basic tutorial for others once I get a little more familiar with it) and generate ranges (v1 of the code is pretty slow, will have to work on this a lot more I guess).
So now I have a range (= an array of ulongs representing hands) for each player and I want to compute equities, monte carlo style.
The problem I have now is that I do not know how to randomly select hands from ranges in a way that doesnt skew the other random selections.
Like if I have ranges (AA) vs (AA,KK) and I first randomly select a hand from range (AA), then randomly select a hand from range (AA,KK), check if there is no card overlap and if there is, I repeat the selection. Now it matters which range is the first to select from. If range (AA) is first, then range (AA,KK) will have AA much less often than if if were first to select from.
Hope you guys can help me out here.
Joe
EDIT: Seems that I solved the problem. Now the algorithm draws all hands again (not just the last one) in a loop until there is no card overlap. I havent thought it through enough to be 100% sure its the correct solution, but so far what I tried it gives the same results as ProPokerTools.Statistics: Posted by JoeSham — Wed Mar 12, 2014 12:59 pm
]]>