Calculating Strength of Poker Hand

Started by
20 comments, last by Daddy-O 19 years, 7 months ago
Quote:Original post by uutee
these are just special cases for each hand type.

- Mikko


And if you want to cover more variants, check tips etc...
you can check this place out
No no no no! :)
Advertisement
The goal of the project is to create a poker playing AI. But before I do that, I need to make a poker game! When I first posted this my intent was to be able to have the absolute strength of each hand be represented by a real number. However after getting into some of the link people have provided, I'm gonna get the probabilities going for the AI based on the hole cards and public cards. All I need now is to be able to determine the best hand from 7 cards. I was hoping to find some nice elegant solution, but now I'm just doin one of these...

bool hasPair(Hand hand);
bool hasTwoPair(Hand hand);
bool hasThree(Hand hand);

etc.

This topic is closed to new replies.

Advertisement