Poker-AI.org http://poker-ai.org/phpbb/ |
|
Hand Evaluator that identifies draws? http://poker-ai.org/phpbb/viewtopic.php?f=24&t=3246 |
Page 1 of 1 |
Author: | isitgto [ Mon Aug 19, 2019 10:31 pm ] |
Post subject: | Hand Evaluator that identifies draws? |
Is there a fast hand evaluator that identifies various draws such as flush draw, 8 out straight draw, 4 out straight draw, combo straight draw? Ideally in c++? |
Author: | spears [ Tue Aug 20, 2019 8:41 pm ] |
Post subject: | Re: Hand Evaluator that identifies draws? |
You could adapt the very fast two plus two evaluator to do this. There is some java that shows how all 7 card hands are evaluated at http://www.poker-ai.org/archive/www.pok ... 1517#p1517 So given 6 cards you could find u5. Then you could find the hand rank and hand type for all possible 7th cards. Then filter these for the type of draw you want. There is a c++ version out there somewhere too |
Author: | HontoNiBaka [ Wed Aug 21, 2019 2:25 pm ] |
Post subject: | Re: Hand Evaluator that identifies draws? |
spears wrote: So given 6 cards you could find u5. Then you could find the hand rank and hand type for all possible 7th cards. Then filter these for the type of draw you want. I did something like that once but there are sometimes problems when there is a flush or straight on the board and your holecards are not used, so you need a few extra checks. Although maybe this evaluator takes care of that, I was using a different one. |
Author: | spears [ Wed Aug 21, 2019 3:33 pm ] |
Post subject: | Re: Hand Evaluator that identifies draws? |
Nice catch. There is code in the evaluator for a 5 card hand too so you should be able to filter those cases out. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |