Hi Loic, Loic Dachary schrieb:
>> I am currently looking at the poker-eval library, and was wondering if >> there is any way to classify 'draw', non-made hands (flush-draw, >> open-end or gutshot straight-draw). The HandType_ return values of >> _EVAL_TYPE cover made hands only. >> > I assume you are familiar with poknum. What you would like is a > breakdown by hand type instead of the current high level percentage of > win/tie/lose per player. Correct ? I am not sure if we're talking about the same thing here. I am not talking about enumerators, but about single hands. I just wanted to check for any given 5 or 6 card hand if there is a flush-draw (4 cards of one suit) or a straight draw (any one or two ranks that would complete the straight). My understanding from your answer is that this is not implemented in poker-eval. I did it by foot now, which is very easy, but probably not the fastest way that you would want in a library. > Please let me know if and how you solved this. For flush draws, I basically just CardMask_AND() connect the card mask of the hand with a card mask consisting of all ranks of one suit, and count the number of cards remaining after the AND operation. If, for any of the four suits, the resulting card mask contains 4 cards, I'm on a flush draw. For straight draws, I do something similar. I just add a card of each rank to the card mask of the hand successively, and count the number of ranks that would complete a straight. If it is 1, I have a gutshot straight draw, if it is two, I have an open end straight draw. Thanks again, Holger _______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
