Quote:
Originally Posted by PokerHero77
Heads up or multi-way? Sorry, I did not look at your code.
If it's heads up you can preload the win equities in a file, and read it into cache. 52x51x50x49/4/3/2 = 270,725 combos, which should be easily manageable.
If mulri-way, I suggest looking at skpe, which has an array footprint of about 60k elements, and only about 10 lines of runtime code.
Thanks. That sounds like the way to go.
Heads up for now...
Problem is with C52,4 we'll get unordered combos right? And we care about the order of the cards partially(in whose hand the cards are).
Using a permutation(order matters) it would be ~6.5M combos. We can sort the order of the cards for each player (so that AK vs QJ = KA vs QJ = AK vs JQ = KA vs JQ) and the order of the players(AK vs QJ = QJ vs AK) to divide that by 8 and bring the number of combos down to 812,175 if my calculations are correct.
Does my calculation sound right to you? Did I miss anything or can you think of a way to bring the number of combos down a little more?