|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HandEval
An interface for Plug-in Hand Evaluation engines. A Hand Evaluator takes as input a poker hand (5 to 7 cards) and returns a unique integer rank for the best poker hand made from those cards, such that any hand that beats another hand is assigned a strictly larger integer. Any hands that tie would be assigned identical integers. Exposes special rankHand calls for specific hand sizes so that special optimizations can be done for each case.
Method Summary | |
---|---|
int |
rankHand(Hand h)
Rank the hand |
int |
rankHand5(Hand h)
Rank the 5-card hand |
int |
rankHand6(Hand h)
Rank the 6-card hand |
int |
rankHand7(Hand h)
Rank the 7-card hand |
Method Detail |
---|
int rankHand(Hand h)
h
- a poker hand with 5,6, or 7 cards
int rankHand7(Hand h)
h
- a poker hand with exactly 7 cards
int rankHand6(Hand h)
h
- a poker hand with exactly 6 cards
int rankHand5(Hand h)
h
- a poker hand with exactly 5 cards
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |