Does anybody have a suggestion??? Given the following:
Hold Cards: Ah 4h Board Cards: As 5c 5d 4c jd I can use the poker-eval library to calculate my odds of winning against 2 opponents is: 69.4% My hand is 2 pair, aces and fives I could be beaten if any of the other players have as a hold card: any jack or any 5 or any ace or Since there are 3 jacks, 2 fives and 2 aces, there are 7 outs. Feel free to correct me if you see something different. So there is 7 outs which means I have roughly a 14% chance of being beaten by one person and roughly a 28% chance of being beaten by either of my opponents. Since 69.4% and 28% add up to 97.4% I off a little bit because of using outs to calculate an estimate of percentages. Also, I am off because there is a very small chance somebody has 2 fives, or two jacks or two aces. Anyhow, the 28% estimate of being beaten is good enough. I have made a modification of the poker-eval/examples/fish.c program to produce the following: hold cards: 4h ah board cards: jd as 5c 5d 4c handtype is: 4 990 boards containing As 5c 4c Jd 5d with Ah 4h removed P(NoPair | 2) : 0.0 P(OnePair | 2) : 81.1 P(TwoPair | 2) : 54.5 P(Trips | 2) : 14.0 P(Straight | 2) : 3.2 P(Flush | 2) : 0.0 P(FlHouse | 2) : 3.8 P(Quads | 2) : 0.2 P(StFlush | 2) : 0.0 The line: P(Trips | 2) : 14.0 indicates that given 2 opponents, the probability either one of them having trips is 14% P(Straight | 2) : 3.2 indicates that given 2 opponents, the probability of either one of them having a straight is 3.2% P(FlHouse | 2) : 3.8 indicates that given 2 opponents, the probability of one of them having a full house is 3.8% indicates that given 2 opponents, that the probability of one of them having Quads is 0.2% I would like to change the program in two ways: 1. It did not display probabilities of hands I beat. As I have a pair of aces, I win against any opponent that only has 1 pair. 2. I would like to see something like the following: P(Pair | 2 - As Ao Jx Jx ) : some percentage P(Trip | 2 - As Ac Ad ) : some percentage Basically the probability of all hands that can beat me and the sum of those probabilities. Any light bulbs lite up? I tried to modify fish.c to do this but failed. In fish.c it states: /* We use the fast and small EVAL_TYPE evaluator, since we only care about the hand type, not the particular cards. If we cared about the individual cards, we'd use EVAL_N. */ I tried to replace the EVAL_N evaluator with the EVAL_TYPE evaluator. I got the following error: fish.c: In function ‘main’: fish.c:104: warning: implicit declaration of function ‘StdDeck_StdRules_EVAL_N’ /bin/bash ../libtool --tag=CC --mode=link gcc -g -o fish fish-fish.o ../lib/libpoker-eval.la -lm libtool: link: gcc -g -o .libs/fish fish-fish.o ../lib/.libs/libpoker-eval.so -lm fish-fish.o: In function `main': /home/elmer/poker-eval/examples/fish.c:110: undefined reference to `StdDeck_StdRules_EVAL_N' collect2: ld returned 1 exit status make: *** [fish] Error 1 comments would be appreciated. _______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
