Poker-AI.org

Poker AI and Botting Discussion Forum
It is currently Mon Nov 13, 2023 2:00 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Aug 19, 2019 10:31 pm 
Offline
New Member

Joined: Sat Aug 03, 2019 6:51 am
Posts: 3
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++?


Top
 Profile  
 
PostPosted: Tue Aug 20, 2019 8:41 pm 
Offline
Site Admin
User avatar

Joined: Sun Feb 24, 2013 9:39 pm
Posts: 642
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


Top
 Profile  
 
PostPosted: Wed Aug 21, 2019 2:25 pm 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
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.


Top
 Profile  
 
PostPosted: Wed Aug 21, 2019 3:33 pm 
Offline
Site Admin
User avatar

Joined: Sun Feb 24, 2013 9:39 pm
Posts: 642
Nice catch. There is code in the evaluator for a 5 card hand too so you should be able to filter those cases out.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group