com.javaflair.pokerprophesier.api.helper
Class MyHandStatsHelper

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

public class MyHandStatsHelper
extends Object

A helper which contains the probabilities of my making a particular hand by the river card. The probabilities are determined by a combination of performing a mathematical enumeration of all possible hands and analysis of my outs.

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.HOLE_CARDS_DEALT, PokerProphesierAdapter.FLOP_CARDS_DEALT and PokerProphesierAdapter.TURN_CARD_DEALT.

Author:
Javaflair
See Also:
PokerProphesierAdapter, PokerProphesierAdapter.getMyHandStatsHelper()

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 making a flush.
 float getFourOfAKindProb()
          Returns the probability of making four-of-a-kind.
 float getFullHouseProb()
          Returns the probability of making a full house.
 float getHighCardProb()
          Returns the probability of making a high card hand.
 float getPairProb()
          Returns the probability of making a pair.
 float getStraightFlushProb()
          Returns the probability of making a straight flush.
 float getStraightProb()
          Returns the probability of making a straight.
 float getThreeOfAKindProb()
          Returns the probability of making three-of-a-kind.
 float getTotalProb()
          Returns the sum of all hand probabilities.
 float getTwoPairsProb()
          Returns the probability of making 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 making a high card hand.

Returns:
the probability

getPairProb

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

Returns:
the probability

getTwoPairsProb

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

Returns:
the probability

getThreeOfAKindProb

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

Returns:
the probability

getStraightProb

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

Returns:
the probability

getFlushProb

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

Returns:
the probability

getFullHouseProb

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

Returns:
the probability

getFourOfAKindProb

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

Returns:
the probability

getStraightFlushProb

public float getStraightFlushProb()
Returns the probability of making 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.