|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javaflair.pokerprophesier.api.helper.OppHandStatsHelper
public class OppHandStatsHelper
A helper which contains the probabilities of an opponent currently holding a particular hand. The probabilities aren't future predictions of what hand one or many opponents may achieve by the river, rather they reflect the current hand that any single opponent may have already achieved. The probabilities are determined by performing a mathematical enumeration of all possible hands that an opponent may have.
The helper can not be instantiated directly, rather a reference must be
retrieved from the
PokerProphesierAdapter
after the
PokerProphesierAdapter.runMySimulations(HoleCards, CommunityCards, int, int)
simulator method is executed.
The helper is populated during the following game states:
PokerProphesierAdapter.FLOP_CARDS_DEALT,
PokerProphesierAdapter.TURN_CARD_DEALT
and
PokerProphesierAdapter.RIVER_CARD_DEALT.
PokerProphesierAdapter,
PokerProphesierAdapter.getOppHandStatsHelper()| Method Summary | |
|---|---|
float[] |
getAllProbs()
Returns all of the probabilities as an array, in descending hand order (straight flush, four-of-a-kind etc.). |
float |
getFlushProb()
Returns the probability of having a flush. |
float |
getFourOfAKindProb()
Returns the probability of having four-of-a-kind. |
float |
getFullHouseProb()
Returns the probability of having a full house. |
float |
getHighCardProb()
Returns the probability of having a high card hand. |
float |
getPairProb()
Returns the probability of having a pair. |
float |
getStraightFlushProb()
Returns the probability of having a straight flush. |
float |
getStraightProb()
Returns the probability of having a straight. |
float |
getThreeOfAKindProb()
Returns the probability of having three-of-a-kind. |
float |
getTotalProb()
Returns the sum of all hand probabilities. |
float |
getTwoPairsProb()
Returns the probability of having two pairs. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public float getHighCardProb()
public float getPairProb()
public float getTwoPairsProb()
public float getThreeOfAKindProb()
public float getStraightProb()
public float getFlushProb()
public float getFullHouseProb()
public float getFourOfAKindProb()
public float getStraightFlushProb()
public float getTotalProb()
public float[] getAllProbs()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||