|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.javaflair.pokerprophesier.api.helper.PlayerGameStatsHelper
public class PlayerGameStatsHelper
A helper which contains the probabilities of each player winning/tying the game. The probabilities are determined by performing a set number of simulations, using randomly generated cards and evaluating the resulting hands.
The helper can not be instantiated directly, rather a reference must be
retrieved from the
PokerProphesierAdapter
after the
PokerProphesierAdapter.runPlayerSimulations(HoleCards[], CommunityCards, int)
simulator method is executed.
The helper is populated in all game states.
PokerProphesierAdapter,
PokerProphesierAdapter.getPlayerGameStatsHelper()| Field Summary | |
|---|---|
static float |
PLAYER_EMPTY
Constant indicating that the player position is empty. |
static float |
PLAYER_FOLDED
Constant indicating that the player has folded. |
| Method Summary | |
|---|---|
int |
getNumSimPlayers()
Returns the number of simulator players in the game. |
int |
getNumSimulations()
Returns the number of simulations used to determine the probabilities. |
float |
getPlayerProb(int index)
Returns the winning/tied probability for the player at the specified index. |
float[] |
getPlayerProbs()
Returns the winning/tied probabilities for all players as an array. |
int |
getWinningPlayerIndex()
Returns the index of the winning player. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final float PLAYER_FOLDED
public static final float PLAYER_EMPTY
| Method Detail |
|---|
public int getNumSimPlayers()
public int getNumSimulations()
public float getPlayerProb(int index)
index - the index of the player (starts from 0)
PLAYER_FOLDED or PLAYER_EMPTYpublic float[] getPlayerProbs()
public int getWinningPlayerIndex()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||