|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javaflair.pokerprophesier.api.helper.MyGameStatsHelper
public class MyGameStatsHelper
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.
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 |
|---|
public int getNumSimPlayers()
public int getNumSimulations()
public float getWinProb()
public float getTieProb()
public float getLoseProb()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||