|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPlayer
public class Player
Provides methods needed to emulate poker player behaviors.
Core behaviors:
01. Evaluates hand consisting of pocket cards only (implemented)
02. Evaluates hand consisting of pocket and flop cards (in progress)
03. Evaluates hand consisting of pocket, flop, and turn cards (NOT implemented)
04. Evaluates hand consisting of pocket, flop, turn, and river cards (NOT implemented)
Auxiliary behaviors:
01. Prints active players hands to the console (implemented)
Possible future behaviors:
01. Predict players hands probability to win at each stage of a round.
| Constructor Summary | |
|---|---|
Player()
|
|
| Method Summary | |
|---|---|
static int |
evalHandOnFlop(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus,
java.lang.String[] houseHand,
int topHandSeat,
java.lang.String[] topHandType,
int[] topHandPoints,
int[] topFHSValue,
int[] topFLSValue,
int[] topSTRValue,
int[] topTRPValue,
int[] top2PRValue,
int[] top1PRValue,
int[] topCRDValue,
int[] topPairValue)
Evaluates player's pocket + flop cards to stay or fold. |
static void |
evalHandOnPocket(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus)
Evaluates player's pocket cards to stay or fold. |
static void |
evalHandOnRiver(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus,
java.lang.String[] houseHand)
public static int evalHandOnTurn(int playerNumber, String[] playersHand, String[] playersStatus, String[] houseHand, int topHandSeat, String[] topHandType, int[] topHandPoints, int[] topFHSValue) { // Check for series (start of - or a complete - straight) in all 5 cards. |
static void |
evalHandOnTurn(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus,
java.lang.String[] houseHand)
Evaluates player's pocket + flop + turn cards to stay or fold. |
static void |
getFullHands(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus,
java.lang.String[] houseHand,
java.lang.String[][] fullHands)
|
static void |
printActivePlayersHands(java.lang.String[] playersHands,
java.lang.String[] playersStatus)
Output players hands contents to the console. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Player()
| Method Detail |
|---|
public static void evalHandOnPocket(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus)
playerNumber - Player's position at the table.playersHand - Player's current hand of (pocket) cards.playersStatus - Player's current status (IN or OUT of the round).
public static int evalHandOnFlop(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus,
java.lang.String[] houseHand,
int topHandSeat,
java.lang.String[] topHandType,
int[] topHandPoints,
int[] topFHSValue,
int[] topFLSValue,
int[] topSTRValue,
int[] topTRPValue,
int[] top2PRValue,
int[] top1PRValue,
int[] topCRDValue,
int[] topPairValue)
playerNumber - Player's position at the table.playersHand - Player's current hand of (pocket) cards.playersStatus - Player's current status (IN or OUT of the round).houseHand - The house hand's current cards (3 flop cards)
public static void evalHandOnTurn(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus,
java.lang.String[] houseHand)
playerNumber - Player's position at the table.playersHand - Player's current hand of (pocket) cards.playersStatus - Player's current status (IN or OUT of the round).houseHand - The house hand's current cards (3 flop + 1 turn cards).
public static void evalHandOnRiver(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus,
java.lang.String[] houseHand)
public static void getFullHands(int playerNumber,
java.lang.String[] playersHand,
java.lang.String[] playersStatus,
java.lang.String[] houseHand,
java.lang.String[][] fullHands)
playerNumber - Player's position at the table.playersHand - Player's current hand of (pocket) cards.playersStatus - Player's current status (IN or OUT of the round).houseHand - The house hand's current cards (3 flop cards).fullHands - The full hands (all cards available for play by players and by house).
public static void printActivePlayersHands(java.lang.String[] playersHands,
java.lang.String[] playersStatus)
playersHands - The players hands store.playersStatus - The players status store.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||