|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Hand | |
---|---|
poker |
Uses of Hand in poker |
---|
Methods in poker that return Hand | |
---|---|
static Hand |
HandEvaluator.getBest5CardHand(Hand h)
Get the best 5 card poker hand from a 7 card hand |
Hand |
GameInfo.getBoard()
obtain a Hand containing the board cards. |
Hand |
Context.getBoard()
|
Hand |
Context.getHand()
|
Hand |
PlayerInfo.getRevealedHand()
Obtain the hand revealed by this player |
Methods in poker with parameters of type Hand | |
---|---|
void |
Hand.addHand(Hand h)
|
static int |
HandEvaluator.compareHands(Hand h1,
Hand h2)
Compares two 7 card hands against each other. |
static int |
HandEvaluator.compareHands(int rank1,
Hand h2)
Compares two 5-7 card hands against each other. |
boolean |
Hand.equals(Hand h)
Returns true if the hands are identical |
void |
Deck.extractHand(Hand h)
Remove all cards in the given hand from the Deck. |
static Hand |
HandEvaluator.getBest5CardHand(Hand h)
Get the best 5 card poker hand from a 7 card hand |
static int[][] |
HandEvaluator.getRanks(Hand board)
Given a board, cache all possible two card combinations of hand ranks, so that lightenting fast hand comparisons may be done later. |
static int[][] |
HandEvaluator.getRanksNative(Hand board)
|
double |
HandEvaluator.handRank(Card c1,
Card c2,
Hand h)
Calculates the probability of having the best hand against one opponent. |
double |
HandEvaluator.handRank(Card c1,
Card c2,
Hand h,
int np)
Calculates the probability of having the best hand against several opponents. |
static double |
HandEvaluator.handRankNative(Card c1,
Card c2,
Hand h)
|
static boolean |
HandEvaluator.isTheNuts(Card c1,
Card c2,
Hand board,
int[][] rankCache)
Determine if the hand is the nuts (no hands beat it) |
static java.lang.String |
HandEvaluator.nameHand(Card c1,
Card c2,
Hand b)
Given a hand, return a string naming the hand ('Ace High Flush', etc..) |
static java.lang.String |
HandEvaluator.nameHand(Hand h)
Given a hand, return a string naming the hand ('Ace High Flush', etc..) |
static double[] |
HandEvaluator.potential(Card c1,
Card c2,
Hand bd,
poker.ai.model.WeightTable wt)
|
static double |
HandEvaluator.ppot1(Card c1,
Card c2,
Hand bd,
poker.ai.model.WeightTable wt)
|
static int |
HandEvaluator.rankHand_Java(Hand h)
Get a numerical ranking of this hand. |
static int |
HandEvaluator.rankHand(Card c1,
Card c2,
Hand h)
Get a numerical ranking of this hand. |
static int |
HandEvaluator.rankHand(Hand h)
Get a numerical ranking of this hand. |
static int |
HandEvaluator.rankHand7(Hand h)
Get a numerical ranking of this hand. |
void |
Context.setBoardContext(Hand board)
|
void |
Context.setHandContext(Hand h,
double hs,
double ppot)
|
Constructors in poker with parameters of type Hand | |
---|---|
Hand(Hand h)
Duplicate an existing hand. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |