You have chosen to sponsor your bid up to a maximum amount of .
The project is to create a function that calculates winning/draw odds for two poker games: Texas Hold Em and Omaha Hold Em.
The accuracy of results is of high importance.
The function should take as input
a) the players's hands (two cards for 2-10 players in Texas) (four cards for 2-6 players in Omaha)
b) the community cards: (0 cards = no dealt cards yet) or (first 3 cards = "flop") or (first 4 cards = "turn") or (all 5 cards dealt = "river"); it is the same for both Texas and Omaha
The function should output the winning (+draw) odds (%) for each player. The calculation time should be reasonable for each run.
There are various approaches to compute these values (I already made a stack-overflow check.. and some people propose the monte carlo simulation and similar ideas)
In fact, http://www.cardplayer.com/poker-tools/odds-calculator/texas-holdem is very close to what I need and I will use this site (or similar sites) to test the results of the implemented function. Of course I don't care about graphics at all. I just need the output odds to be as closest as they could with the results of the aforementioned website (an accuracy of less than +-0.1% (maximum +-0.25%) compared to the results of cardplayer.com would be sufficient).
*If someone has already implemented something similar is a plus. Alternatively, If someone knows how to extract these data from other software (probably websites similar to cardplayer by simulating get-post queries) would also be a solution to my problem.