|
||||||||||
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 |
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. |
static double |
HandPotential.CrudePotential1(Card c1,
Card c2,
Hand board)
A crude but fast approximation of PPOT. |
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.getHandClass(Hand h)
Get the class of hand (PAIR, STRAIGHT) |
static NChoose2IntTable |
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 NChoose2IntTable |
HandEvaluator.getRanksNative(Hand board)
|
NChoose2IntTable |
GameInfo.getRankTable(Hand board,
java.lang.String key)
|
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,
NChoose2IntTable 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,
com.biotools.poker.model.WeightTable wt)
|
double |
HandPotential.ppot_raw(Card c1,
Card c2,
Hand bd,
boolean full)
Calculate the raw (unweighted) PPot and NPot of a hand. |
double |
HandPotential.ppot(Card c1,
Card c2,
Hand bd,
com.biotools.poker.model.WeightTable w,
boolean full)
Calculate the PPot and NPot of a hand. |
static double |
HandEvaluator.ppot1(Card c1,
Card c2,
Hand bd,
com.biotools.poker.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. |
int |
HandPotential.rankHandCached(int i,
int j,
int k,
Hand bd,
int[] cache)
|
int |
HandPotential.rankHandCached(int i,
int j,
int k,
int l,
Hand bd,
int[] cache)
|
Constructors in poker with parameters of type Hand | |
---|---|
Hand(Hand h)
Duplicate an existing hand. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |