com.javaflair.pokerprophesier.api.helper
Class OppHandStatsHelper

java.lang.Object
  extended by com.javaflair.pokerprophesier.api.helper.OppHandStatsHelper

public class OppHandStatsHelper
extends Object

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.

Author:
Javaflair
See Also:
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

getHighCardProb

public float getHighCardProb()
Returns the probability of having a high card hand.

Returns:
the probability

getPairProb

public float getPairProb()
Returns the probability of having a pair.

Returns:
the probability

getTwoPairsProb

public float getTwoPairsProb()
Returns the probability of having two pairs.

Returns:
the probability

getThreeOfAKindProb

public float getThreeOfAKindProb()
Returns the probability of having three-of-a-kind.

Returns:
the probability

getStraightProb

public float getStraightProb()
Returns the probability of having a straight.

Returns:
the probability

getFlushProb

public float getFlushProb()
Returns the probability of having a flush.

Returns:
the probability

getFullHouseProb

public float getFullHouseProb()
Returns the probability of having a full house.

Returns:
the probability

getFourOfAKindProb

public float getFourOfAKindProb()
Returns the probability of having four-of-a-kind.

Returns:
the probability

getStraightFlushProb

public float getStraightFlushProb()
Returns the probability of having a straight flush.

Returns:
the probability

getTotalProb

public float getTotalProb()
Returns the sum of all hand probabilities.

Returns:
the total probability

getAllProbs

public float[] getAllProbs()
Returns all of the probabilities as an array, in descending hand order (straight flush, four-of-a-kind etc.).

Returns:
the array of probabilties

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006 Javaflair. All Rights Reserved.