com.javaflair.pokerprophesier.api.helper
Class MyGameStatsHelper

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

public class MyGameStatsHelper
extends Object

A helper which contains the probabilities of my winning, tying or losing the game. The probabilities are determined by performing a set number of simulations, using randomly generated cards and evaluating the resulting hands, subject to the simulator configuration parameters.

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 in all game states.

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

Method Summary
 float getLoseProb()
          Returns the probability of losing the game.
 int getNumSimPlayers()
          Returns the number of simulator players.
 int getNumSimulations()
          Returns the number of simulations used to determine the probabilities.
 float getTieProb()
          Returns the probability of tying the game.
 float getWinProb()
          Returns the probability of winning the game.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getNumSimPlayers

public int getNumSimPlayers()
Returns the number of simulator players.

Returns:
the number of players

getNumSimulations

public int getNumSimulations()
Returns the number of simulations used to determine the probabilities.

Returns:
the number of simulations

getWinProb

public float getWinProb()
Returns the probability of winning the game.

Returns:
the winning probability

getTieProb

public float getTieProb()
Returns the probability of tying the game.

Returns:
the tying probability

getLoseProb

public float getLoseProb()
Returns the probability of losing the game.

Returns:
the losing probability

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006 Javaflair. All Rights Reserved.