Quote:
Originally Posted by guyupstairs
Low content ish, so I'll start here: Dave and Juk, I need a software library (preferably Python or one I can reasonably port to Python) or web service to do holdem equity calculations in my software.
Specifically, in a range-vs-range situation (preflop, flop, turn or river) I need to calculate the equity of each hand in the first range, against the whole of the second range, and vice versa. I.e. in a range-vs-range situation, I need to calculate the equity of each hand in each range.
I only need this to be heads-up, because in three-way situations you can't ever really say objectively which hands were played right anyway.
I know there has been a lot of code written to do this. I guess what I'm after is a little of your hard-earned wisdom on what's most appropriate in this case - and well maintained - a lot of what I've read online is years old, and I figure may be out of date or broken.
Thanks!
Actually, don't worry. I've concluded that I can do this with a combination of naive evaluation and monte carlo simulation, with some statistical wizardry that lets the simulation stop for a given hand when it can be confidently concluded that a bet/fold/call was correct or incorrect (or marginal).
And if this is not suitably performant, I can't start by improving the hand evaluator, before worrying about equivalence class analysis in the starting positions (which is when I'd want a library that someone else wrote).