Thanks SO much for your suggestion. I will see if I can implement that today. My suggestion that this might require AI was more based on the gaming community concept of "opponent AI". It might not pass any Turing test but it does have some notion of intelligence to it.
I bet the algorithm you suggested will be fairly good. I think the comparison is a bit simple though. Consider a hand of A / 2 versus 6 / 9. Even though your algorithm would evaluate them about the same, there are some differences:
My reasoning goes like this:
1) if you end up with a nothing hand, ace hand wins ever time. Ace hand is better.
2) if both hands ended up with a pair by matching either pocket card, there is a 50/50 chance that either hand will win. If a pair appears on the table, ace hand will win with ace as a kicker. Ace hand is better
3) 3 of a kind logic is similar Ace as kicker makes ace hand slightly better.
4) two pair? match pocket cards, ace hand wins. match one of the pocket pairs? 50/50 (this is getting a bit beyond my ability to think properly about probabilities).
5) straight? depends where the straight happens. seems to me 6 / 9 hand is stronger. What about measuring the "straight potential" of a 2-card hand? How might that be done?
6) flush? ace kicker might make ace hand better. in the case of off-suit pocket pair (2 original cards are different suits), chances are split 50/50 between the two hands.
and so on.
Anyways, my intuition (and Celebrity Poker Showdown) tell me that a good pocket pair is 2 high cards--ideally two sequential ones (i.e, 6 / 7 or Q/K) and of the same suit. I would like to construct something that examines the "outs". an "out" is a card that will improve your hand. if you have Q/K of Diamonds, outs might be jack, ace, q, k, or another diamond card.
I've googled around...apparently the university of alberta has a seriously good poker algorithm going (it's like their version of Deep Blue) and some other postings i've seen talk about calculating the likelihood of outs and stuff.
i just don't know how to string all the logic together. I'll go googling some more.
THANKS!