Originally Posted by alon.albert
I also wrote another version that does the same thing for SnG tourneys. It currently only does EV in chips or blinds but the plan is to add ICM EV shortly.
If you take a look at my SNG luck code then I included the C++ source for the code that does the ICM-based EV Luck stuff. Feel free to take whatever of the code might be of help and/or the outcome lookups.
- Has all the code that is used to work out the expected EVs and deals with the outcome lookups. Should be fairly self explanatory (ie: how I've used lookups to speedup the 2-way and 3-way preflop all-in calculations, how I store/unpack the lookups to make the zipped filesize ~20MB, etc).
- Uses the HandOutcomeGenerator class to work out and print the EV differences, etc.
- Is a modified copy of Steve Brecher's uncopyrighted hand evaluator that can be used in place of the GNU pokersrc library. I had to use this to be able to release only part of my code.
I've not included any of the other classes used, but they should be pretty much self-explanatory from the member names. Just reading through hand_outcome_generator.h and BackTestAllInLuck.h should be enough for you to re-implement the algorithms in your own codebase quite easily and will hopefully save you quite alot of time re-doing the same stuff as I had to.
I'm sure alot of people will be happy to get a version of the SNG luck stuff that can work from the PT3 DB rather that the current system of converter AHK scripts, etc (my code was never really meant to be more than a proof-of-concept to test if the original SNGLuckAnalyser code was giving correct results for Party).