meerkat
A B C D E F G H I J K L M N P Q R S T U V W

A

ACE - Static variable in class poker.Card
 
aceOnBoard() - Method in class poker.Context
 
action() - Method in interface poker.Player
Requests an action from the player (FOLD, CALL, RAISE) RAISE_NL(amount) in a no-limit game as a special case.
actionEvent(int, int, int) - Method in interface poker.GameObserver
 
actionEvent(int, int, int) - Method in interface poker.Player
A player can override this method to recieve events for each action made by a player.
actions - Static variable in class poker.Holdem
 
active() - Method in class poker.PlayerInfo
Return true if the player is still active in the hand
activePlayer(int) - Method in class poker.GameInfo
Test if a player at a specific position is active in the game.
addCard(Card) - Method in class poker.Hand
Add a card to the hand.
addCard(int) - Method in class poker.Hand
Add a card to the hand.
addHand(Hand) - Method in class poker.Hand
 
addPlayer(PlayerInfo) - Method in class poker.GameInfo
Adds a new player to the game.
addReportListener(ReportListener) - Method in class poker.util.Reporter
 
addWinner(String) - Method in class poker.GameInfo
Add a player to the list of winners
advanceCurrentPlayer() - Method in class poker.GameInfo
Advance the current player to the next active player in the game.
advanceStage() - Method in class poker.PlayerInfo
The betting round is over
ALLIN - Static variable in class poker.Holdem
 
allIn() - Method in class poker.PlayerInfo
Determine if a player is All-In
allInPass() - Method in class poker.GameInfo
the player is all-in, so passes on his action.
appendLog(String) - Method in class poker.util.Reporter
Logs a message to a file.

B

BAD_CARD - Static variable in class poker.Card
 
BET - Static variable in class poker.Holdem
 
bet(int) - Method in class poker.PlayerInfo
The player bets
betRatio() - Method in class poker.PlayerInfo
The bet ratio is the number of times a player bet divided by the number of chances they had to bet (a measure of agressiveness)
BIG_BLIND - Static variable in class poker.Holdem
 
bigBlind() - Method in class poker.GameInfo
Big Blind the current player
bigBlind() - Method in class poker.PlayerInfo
The player pays the big blind
BLIND - Static variable in class poker.Holdem
 
boardString() - Method in class poker.GameRecord
 

C

call() - Method in class poker.GameInfo
Call the current player
CALL - Static variable in class poker.Holdem
 
call(int) - Method in class poker.PlayerInfo
The player calls
canRaise() - Method in class poker.GameInfo
Determine if the current player is allowed to raise.
Card - Class in poker
Represents a playing card from a set of cards {0..51} which map to cards having a suit {0..3} <==> {SPADES,HEARTS,DIAMONDS,CLUBS} and a face value {0..12} <==> {2..ACE}
Card() - Constructor for class poker.Card
Constructor -- makes an empty card.
Card(int, int) - Constructor for class poker.Card
Constructor.
Card(int) - Constructor for class poker.Card
Constructor.
Card(String) - Constructor for class poker.Card
 
Card(char, char) - Constructor for class poker.Card
Constructor.
cardsLeft() - Method in class poker.Deck
Obtain the number of cards left in the deck
cardString(String) - Method in class poker.GameRecord
 
center(String, int) - Static method in class poker.util.Reporter
Pads s with space on both sides so as to center it, returning a string of length size.
CGetRanks(int[], int[]) - Static method in class poker.HandEvaluator
 
CHandRank(int, int, int[]) - Static method in class poker.HandEvaluator
Calculates the probability of having the best hand against one opponent.
charToAction(char) - Method in class poker.PlayerInfo
Convert a character representing an action to an Action number.
CHECK - Static variable in class poker.Holdem
 
check() - Method in class poker.PlayerInfo
The player checks
clearAll() - Method in class poker.util.Preferences
 
clearBadCards() - Method in class poker.Hand
 
CLUBS - Static variable in class poker.Card
 
compareHands(Hand, Hand) - Static method in class poker.HandEvaluator
Compares two 7 card hands against each other.
compareHands(int, Hand) - Static method in class poker.HandEvaluator
Compares two 5-7 card hands against each other.
consoleOff() - Method in class poker.util.Reporter
disable the output to console
consoleOn() - Method in class poker.util.Reporter
Set the output to console
contains(Card) - Method in class poker.Hand
 
Context - Class in poker
This messy looking class is just a simple container for a zillion different nibblets of context information associated with player actions.
Context() - Constructor for class poker.Context
 
Context(PlayerInfo, int, double) - Constructor for class poker.Context
 
Context(String) - Constructor for class poker.Context
 
CRankHandFast(int[]) - Static method in class poker.HandEvaluator
Get a numerical ranking of this hand.
CRankHandFast7(int[]) - Static method in class poker.HandEvaluator
Get a numerical ranking of this hand.

D

deal() - Method in class poker.Deck
Obtain the next card in the deck.
dealCard() - Method in class poker.Deck
Obtain a random card from the deck.
debug(String) - Method in class poker.util.Reporter
 
debugb(String) - Method in class poker.util.Reporter
 
Deck - Class in poker
A Deck of 52 Cards which can be dealt and shuffled Some functions could be made much faster with some extra memory.
Deck() - Constructor for class poker.Deck
Constructor.
Deck(long) - Constructor for class poker.Deck
Constructor w/ shuffle seed.
DIAMONDS - Static variable in class poker.Card
 

E

EIGHT - Static variable in class poker.Card
 
empty() - Method in class poker.util.Preferences
 
equals(Card) - Method in class poker.Card
 
equals(Hand) - Method in class poker.Hand
Returns true if the hands are identical
extractCard(Card) - Method in class poker.Deck
Remove a card from within the deck.
extractHand(Hand) - Method in class poker.Deck
Remove all cards in the given hand from the Deck.
extractRandomCard() - Method in class poker.Deck
Remove and return a randomly selected card from within the deck.

F

fileExists(String) - Static method in class poker.util.Reporter
 
finalize() - Method in class poker.util.Reporter
 
Find_Hand(int[], int[]) - Static method in class poker.HandEvaluator
 
findCard(Card) - Method in class poker.Deck
Find position of Card in Deck.
findDiscard(Card) - Method in class poker.Deck
 
FIVE - Static variable in class poker.Card
 
flop(Card, Card, Card) - Method in class poker.GameInfo
Proceed to stage FLOP
FLOP - Static variable in class poker.Holdem
 
flushPossible(int) - Method in class poker.Context
 
fold() - Method in class poker.GameInfo
Fold the current player
fold(String) - Method in class poker.GameInfo
Fold a player (when it is not their turn)
FOLD - Static variable in class poker.Holdem
 
fold() - Method in class poker.PlayerInfo
The Player has folded
format(String) - Method in class poker.util.Reporter
 
FOUR - Static variable in class poker.Card
 

G

GameInfo - Class in poker
Stores all of the info defining a single game of poker.
GameInfo() - Constructor for class poker.GameInfo
Default Constructor
GameObserver - Interface in poker
An interface for a poker game observer.
gameOver() - Method in class poker.GameInfo
Report the end of the game and log player and game history.
gameOverEvent() - Method in interface poker.GameObserver
 
gameOverEvent() - Method in interface poker.Player
The hand is now over.
GameRecord - Class in poker
Logs a GameInfo object to disk as our standard formatted game log string.
GameRecord(GameInfo) - Constructor for class poker.GameRecord
 
GameRecord(String) - Constructor for class poker.GameRecord
Creates a new GameRecord out of a game record log string.
gameStartEvent(GameInfo) - Method in interface poker.GameObserver
 
gameStartEvent(GameInfo) - Method in interface poker.Player
The hand is starting
generateTranscript() - Method in class poker.GameRecord
Given a GameRecord, generate a text transcript of the hand
getAction() - Method in class poker.Context
 
getAction(int, int) - Method in class poker.GameRecord
 
getAction(int) - Static method in class poker.Holdem
 
getAction(int, int) - Method in class poker.PlayerInfo
Obtain a specific action from the player's actions.
getActionContext() - Method in class poker.PlayerInfo
Get the context of the last action made by this player.
getActions() - Method in class poker.PlayerInfo
Obtain a string representation of the player's actions.
getAmountBet() - Method in class poker.Context
 
getAmountCallable() - Method in class poker.PlayerInfo
 
getAmountInPot() - Method in class poker.PlayerInfo
Obtain the amount the player has put in the pot.
getAmountInPotThisRound() - Method in class poker.PlayerInfo
Obtain the amount the player has put in the pot.this round
getAmountRaiseable() - Method in class poker.PlayerInfo
 
getAmountToCall(int) - Method in class poker.GameInfo
Get the amount a player must call to stay in
getAmountToCall(int) - Method in class poker.PlayerInfo
Determine the amount a player must pay to stay in the game
getAmountToCall() - Method in class poker.PlayerInfo
Determine the amount a player must pay to stay in the game
getBankRoll() - Method in class poker.PlayerInfo
 
getBankRollInSmallBets() - Method in class poker.PlayerInfo
 
getBest5CardHand(Hand) - Static method in class poker.HandEvaluator
Get the best 5 card poker hand from a 7 card hand
getBetAmount() - Method in class poker.GameInfo
Obtain the total amount players must have in the pot to stay in
getBetList() - Method in class poker.GameInfo
A list containing the size of each bet/raise made through the hand.
getBetRatio() - Method in class poker.Context
 
getBetSize() - Method in class poker.Context
 
getBetSize() - Method in class poker.GameInfo
Get the current size of the bet.
getBetsToCall() - Method in class poker.Context
 
getBetsToCall(int) - Method in class poker.GameInfo
Get the number of bets a player must call to stay in
getBigBet() - Method in class poker.GameInfo
 
getBigBlindPosition() - Method in class poker.GameInfo
Determine the position of the big blind
getBigBlindSize() - Method in class poker.GameInfo
Get the size of a big blind.
getBoard() - Method in class poker.Context
 
getBoard() - Method in class poker.GameInfo
obtain a Hand containing the board cards.
getBoard() - Method in class poker.GameRecord
Returns the board.
getBoardCard(int) - Method in class poker.GameInfo
Obtain the nth card on the table
getBooleanPreference(String) - Method in class poker.util.Preferences
given a key preference name, obtain its value as a boolean value.
getBooleanPreference(String, boolean) - Method in class poker.util.Preferences
given a key preference name, obtain its value as a boolean value.
getButton() - Method in class poker.Context
 
getButton() - Method in class poker.GameInfo
 
getButton() - Method in class poker.GameRecord
Returns the position of the button.
getCard(int) - Method in class poker.Deck
Obtain the card at a specific index in the deck.
getCard(int) - Method in class poker.Hand
Get the specified card in the hand
getCardArray() - Method in class poker.Hand
Obtain the array of card indexes for this hand.
getCardIndex(int) - Method in class poker.Hand
Get the specified card id
getCards() - Method in class poker.GameRecord
Returns each player's hole cards.
getCommitted() - Method in class poker.Context
 
getCommittment() - Method in class poker.Context
 
getCurrentPlayerInfo() - Method in class poker.GameInfo
 
getCurrentPlayerName() - Method in class poker.GameInfo
 
getCurrentPlayerPosition() - Method in class poker.GameInfo
 
getDoublePreference(String, double) - Method in class poker.util.Preferences
given a key preference name, obtain its value as an int.
getDoublePreference(String) - Method in class poker.util.Preferences
given a key preference name, obtain its value as an int.
getEligiblePot(int) - Method in class poker.GameInfo
Get the amount in the pot, a player is eligble for
getFile() - Method in class poker.util.Preferences
 
getFileName() - Method in class poker.util.Preferences
 
getFirstPlayerWithMostIn() - Method in class poker.GameInfo
Find the first player who has the most invested in the pot.
getGameInfo() - Method in class poker.PlayerInfo
Get the context of the last action made by this player.
getHand() - Method in class poker.Context
 
getHandPotential() - Method in class poker.Context
 
getHandRank(Card, Card) - Method in class poker.GameInfo
Look up a the rank of a hand against the current board
getHandRanks() - Method in class poker.GameInfo
Returns a 52x52 array of hand rank values for every hand against the current board;
getHandStrength() - Method in class poker.Context
 
getID() - Method in class poker.GameInfo
 
getID() - Method in class poker.GameRecord
Returns the id of the game.
getIndex() - Method in class poker.Card
Return the integer index for this card.
getInHand() - Method in class poker.Context
 
getIntPreference(String) - Method in class poker.util.Preferences
given a key preference name, obtain its value as an int.
getIntPreference(String, int) - Method in class poker.util.Preferences
given a key preference name, obtain its value as an int.
getLastAction() - Method in class poker.Context
 
getLastAction() - Method in class poker.PlayerInfo
Obtain the last action made by the player
getLastActionCode() - Method in class poker.Context
 
getLastActionCode(int, int) - Static method in class poker.Context
 
getLastActionCode() - Method in class poker.PlayerInfo
A single integer code for the last action made
getLastAmountCalled() - Method in class poker.PlayerInfo
Get the amount called by this player during his last action
getLastBetsToCall() - Method in class poker.Context
 
getLastBetsToCall() - Method in class poker.PlayerInfo
Obtain the amount of bets the player had to call during their last action.
getLongPreference(String, long) - Method in class poker.util.Preferences
given a key preference name, obtain its value as an int.
getMainPot() - Method in class poker.GameInfo
 
getMaximumRisk() - Method in class poker.PlayerInfo
The maximum we can risk in the hand.
getMinBet() - Method in class poker.Context
 
getMinRaise() - Method in class poker.GameInfo
 
getName() - Method in class poker.PlayerInfo
obtain the player's name
getNames() - Method in class poker.GameRecord
Returns each player's name.
getNetGain() - Method in class poker.PlayerInfo
 
getNumActionType(int, char, int) - Method in class poker.GameRecord
Get the number of an action made by this player
getNumActivePlayers() - Method in class poker.Context
 
getNumActivePlayers() - Method in class poker.GameInfo
 
getNumActivePlayersNotAllIn() - Method in class poker.GameInfo
 
getNumberOfAllInPlayers() - Method in class poker.GameInfo
 
getNumBetter() - Method in class poker.HandEvaluator
Get the number of hands better than the last hand ranked.
getNumPlayers() - Method in class poker.Context
 
getNumPlayers() - Method in class poker.GameInfo
 
getNumPlayers() - Method in class poker.GameRecord
Returns the number of players.
getNumPlayersWithChips() - Method in class poker.GameInfo
 
getNumPots() - Method in class poker.Pot
 
getNumRaises() - Method in class poker.Context
 
getNumRaises() - Method in class poker.GameInfo
 
getNumSuits() - Method in class poker.Context
 
getNumTied() - Method in class poker.HandEvaluator
Get the number of hands tied with the last hand ranked.
getNumToAct() - Method in class poker.Context
 
getNumToAct() - Method in class poker.GameInfo
 
getNumUnactedPlayers() - Method in class poker.Context
 
getNumWinners() - Method in class poker.GameInfo
 
getNumWinners() - Method in class poker.GameRecord
 
getNumWorse() - Method in class poker.HandEvaluator
Get the number of hands worse than the last hand ranked.
getPlayedStage(int) - Method in class poker.GameRecord
Get the stage of the game this player went to.
getPlayerIndex(String) - Method in class poker.GameRecord
 
getPlayerInfo(int) - Method in class poker.GameInfo
 
getPlayerInfo(String) - Method in class poker.GameInfo
Given a name, obtain the PlayerInfo object for that player
getPlayerName(int) - Method in class poker.GameInfo
Get the player's name from a position
getPlayerPosition(String) - Method in class poker.GameInfo
From a name, find out a player's position
getPlayerPosition(String) - Method in class poker.GameRecord
Find the position of the given player by name
getPlayersInPot(int) - Method in class poker.GameInfo
 
getPosition() - Method in class poker.Context
 
getPosition() - Method in class poker.PlayerInfo
Get our position ID in the GameInfo
getPositionCode() - Method in class poker.Context
 
getPot() - Method in class poker.GameInfo
 
getPotOdds() - Method in class poker.Context
 
getPots() - Method in class poker.Pot
 
getPotSize() - Method in class poker.Context
 
getPreference(String, String) - Method in class poker.util.Preferences
given a key preference name, obtain its value.
getPreference(String) - Method in class poker.util.Preferences
given a key preference name, obtain its value.
getRank() - Method in class poker.Card
Obtain the rank of this card
getRank(int) - Static method in class poker.Card
Obtain the rank of this card
getRankChar(int) - Static method in class poker.Card
 
getRankFromChar(char) - Static method in class poker.Card
 
getRanks(Hand) - Static method in class poker.HandEvaluator
Given a board, cache all possible two card combinations of hand ranks, so that lightenting fast hand comparisons may be done later.
getRanksNative(Hand) - Static method in class poker.HandEvaluator
 
getReporter() - Method in class poker.GameInfo
 
getReporter() - Static method in class poker.util.Reporter
 
getRevealedHand() - Method in class poker.PlayerInfo
Obtain the hand revealed by this player
getSawCards() - Method in class poker.Context
 
getSequence() - Method in class poker.GameInfo
 
getSequence() - Method in class poker.GameRecord
Returns the betting sequence.
getSidePot() - Method in class poker.Pot
 
getSize() - Method in class poker.Pot
 
getSmallBet() - Method in class poker.GameInfo
 
getSmallBlindPosition() - Method in class poker.GameInfo
Determine the position of the small blind
getSmallBlindSize() - Method in class poker.GameInfo
Get the size of a small blind.
getStage() - Method in class poker.Context
 
getStage() - Method in class poker.GameInfo
 
getSuit(int) - Static method in class poker.Card
Obtain the suit of this card
getSuit() - Method in class poker.Card
Obtain the suit of this card
getSuitChar(int) - Static method in class poker.Card
Given an integer suit value {0...3}, returns a character representation of it {h,d,c,s}
getSuitFromChar(char) - Static method in class poker.Card
Converts a suit character into its integer representation.
getThreshold() - Method in class poker.Pot
 
getTopCard() - Method in class poker.Deck
Get the first card in the deck
getTopCardIndex() - Method in class poker.Deck
Obtain the position of the top card.
getUnacted() - Method in class poker.GameInfo
Obtain the number of opponents who have not yet acted in this betting round.
getValue(int) - Method in class poker.GameRecord
 
getValues() - Method in class poker.GameRecord
Returns each player's value.
getWinners() - Method in class poker.GameInfo
 

H

Hand - Class in poker
Stores a Hand of Cards (up to a maximum of 7)
Hand() - Constructor for class poker.Hand
 
Hand(String) - Constructor for class poker.Hand
 
Hand(Hand) - Constructor for class poker.Hand
Duplicate an existing hand.
HandEvaluator - Class in poker
Class for identifying / comparing / ranking Hands.
HandEvaluator() - Constructor for class poker.HandEvaluator
Construct a new Hand Evaluator.
handRank(Card, Card, Hand, int) - Method in class poker.HandEvaluator
Calculates the probability of having the best hand against several opponents.
handRank(Card, Card, Hand) - Method in class poker.HandEvaluator
Calculates the probability of having the best hand against one opponent.
handRank(Card, Card, int[][], Deck) - Static method in class poker.HandEvaluator
Calculate the strength of the given hand.
handRankNative(Card, Card, Hand) - Static method in class poker.HandEvaluator
 
hasEnoughToCall() - Method in class poker.PlayerInfo
 
hasEnoughToRaise() - Method in class poker.PlayerInfo
 
hasSidePot() - Method in class poker.Pot
 
HEARTS - Static variable in class poker.Card
 
highCards(int) - Method in class poker.Context
 
Holdem - Class in poker
Useful Holdem Constants Source Code: Holdem.java
Holdem() - Constructor for class poker.Holdem
 

I

inDeck(Card) - Method in class poker.Deck
See if a card is in the deck, or if it has been dealt.
inGame(String) - Method in class poker.GameInfo
Test if a player is in this game or not.
init(Preferences) - Method in interface poker.Player
Initialize your player from the given preferences file.
insertPlayer(String, int) - Method in class poker.GameInfo
Insert a new player into the game.
isButton() - Method in class poker.PlayerInfo
 
isCommitted() - Method in class poker.PlayerInfo
Test if a player has volunatrily committed yet in this round
isDirty() - Method in class poker.util.Preferences
 
isFlop() - Method in class poker.GameInfo
 
isGameOver() - Method in class poker.GameInfo
 
isNative() - Method in class poker.HandEvaluator
Returns true if the native evaluation library is loaded.
isNoLimit() - Method in class poker.GameInfo
 
isPostFlop() - Method in class poker.GameInfo
 
isPreFlop() - Method in class poker.GameInfo
 
isRiver() - Method in class poker.GameInfo
 
isSimulation() - Method in class poker.GameInfo
 
isTheNuts(Card, Card, Hand, int[][]) - Static method in class poker.HandEvaluator
Determine if the hand is the nuts (no hands beat it)
isTurn() - Method in class poker.GameInfo
 
isZipMode() - Method in class poker.GameInfo
Zip mode is a flag for bots to think at a reduced capacity where speed of play is valued over quality of decisions.

J

JACK - Static variable in class poker.Card
 

K

KING - Static variable in class poker.Card
 
kingOnBoard() - Method in class poker.Context
 

L

lastAction() - Method in class poker.PlayerInfo
A single integer code for the last action made
level - Variable in class poker.util.Reporter
Non-negative value indicating priority threshold for reporting messages.
loadExec(String) - Static method in class poker.util.Reporter
Attempts to execute the command.
loadFile(String) - Static method in class poker.util.Reporter
Load the contents of a text file into a String
loadPlayerInfo(String) - Method in class poker.GameInfo
 
loadPreferences(File) - Method in class poker.util.Preferences
Load preferences fresh from disk
log(String, String) - Static method in class poker.util.Reporter
Logs a message to a file.
LOG_DIR - Variable in class poker.GameInfo
 
LOG_GAME - Variable in class poker.GameInfo
 
logGame() - Method in class poker.GameInfo
 

M

makeEmpty() - Method in class poker.Hand
Remove the all cards from the hand.
MAX_CARDS - Static variable in class poker.Hand
 
MAX_PLAYERS - Static variable in class poker.Holdem
 
MAX_RAISES - Static variable in class poker.Holdem
 
moveButtonBack() - Method in class poker.GameInfo
move the button back by one position.
muck(int) - Method in class poker.GameInfo
 
muck() - Method in class poker.PlayerInfo
 
munkString(String) - Static method in class poker.util.Preferences
convert a string so that it fits all on one line (required for a valid preference string)

N

nameHand(Card, Card, Hand) - Static method in class poker.HandEvaluator
Given a hand, return a string naming the hand ('Ace High Flush', etc..)
nameHand(Hand) - Static method in class poker.HandEvaluator
Given a hand, return a string naming the hand ('Ace High Flush', etc..)
newGame(GameInfo, Card, Card, int) - Method in interface poker.Player
Start playing a new game.
nextActivePlayer(int) - Method in class poker.GameInfo
Given a position, returns the position of the next active player
nextDouble() - Method in class poker.util.Randomizer
 
nextPlayer(int) - Method in class poker.GameInfo
Get the position of the next player after the given position
NINE - Static variable in class poker.Card
 
NUM_CARDS - Static variable in class poker.Card
 
NUM_CARDS - Static variable in class poker.Deck
 
NUM_RANKS - Static variable in class poker.Card
 
NUM_SUITS - Static variable in class poker.Card
 

P

pad(String, int) - Static method in class poker.util.Reporter
 
pause() - Static method in class poker.util.Reporter
wait for the user to type enter.
pay(int) - Method in class poker.PlayerInfo
Have the player pay what it owes to the pot.
payPot(int, PlayerInfo) - Method in class poker.GameInfo
 
payPot(int, PlayerInfo) - Method in class poker.Pot
 
pickRandomCard() - Method in class poker.Deck
Return a randomly selected card from within the deck without removing it.
Player - Interface in poker
An interface for a poker player.
playerCommitted(int) - Method in class poker.GameInfo
Test if a player has committed in the current betting round.
PlayerInfo - Class in poker
Stores all of the information for a player during a poker game.
PlayerInfo(String, GameInfo) - Constructor for class poker.PlayerInfo
Constructor.
poker - package poker
 
poker.util - package poker.util
 
Pot - Class in poker
Handles a Pot data structure, which accumulates money from players, and can break into multiple side pots.
Pot(GameInfo) - Constructor for class poker.Pot
 
potOdds() - Method in class poker.PlayerInfo
Obtain the player's pot odds
potOdds2() - Method in class poker.PlayerInfo
Obtain the player's predicted future pot odds
potRatio() - Method in class poker.PlayerInfo
The ratio of the money in the pot that belongs to the player
Preferences - Class in poker.util
Handles the storage and retrieval of program preferences Note. '=' is a reserved character and may not be used to name preferences or within their values.
Preferences() - Constructor for class poker.util.Preferences
 
Preferences(File) - Constructor for class poker.util.Preferences
Create a new set of Preferences from a given file.
Preferences(String) - Constructor for class poker.util.Preferences
Create a new set of Preferences from a given file.
Preferences(String, String) - Constructor for class poker.util.Preferences
Load preferences fresh from disk
PREFLOP - Static variable in class poker.Holdem
 
print(String) - Method in class poker.util.Reporter
Print a message to the current output stream.
println(String) - Method in class poker.util.Reporter
Print a message to the current output stream.
prompt(String) - Method in class poker.util.Reporter
Prompt the user for a string.

Q

QUEEN - Static variable in class poker.Card
 

R

raise(int) - Method in class poker.GameInfo
Raise the current player
RAISE - Static variable in class poker.Holdem
 
raise(int, int) - Method in class poker.PlayerInfo
The player raises
RAISE_NL(int) - Static method in class poker.Holdem
 
RAISE_NL_AMOUNT(int) - Static method in class poker.Holdem
 
randInt(int) - Method in class poker.util.Randomizer
Generate a random integer from 0 to range-1
Randomizer - Class in poker.util
Looks after random number generation.
Randomizer() - Constructor for class poker.util.Randomizer
 
rankHand(Hand) - Static method in class poker.HandEvaluator
Get a numerical ranking of this hand.
rankHand(Card, Card, Hand) - Static method in class poker.HandEvaluator
Get a numerical ranking of this hand.
rankHand7(Hand) - Static method in class poker.HandEvaluator
Get a numerical ranking of this hand.
rankHand_Java(Hand) - Static method in class poker.HandEvaluator
Get a numerical ranking of this hand.
readLine() - Static method in class poker.util.Reporter
Read a line of text from stdin.
readString() - Static method in class poker.util.Reporter
Return the next line typed by the user.
removeAllPlayers() - Method in class poker.GameInfo
Remove all the players from the game
removeCard() - Method in class poker.Hand
Remove the last card in the hand.
removeCard(int) - Method in class poker.Hand
Remove the ith card in the hand.
removePlayer(String) - Method in class poker.GameInfo
Remove a player from the game.
removePreference(String) - Method in class poker.util.Preferences
 
removeReportListener(ReportListener) - Method in class poker.util.Reporter
 
removeUncalledChips() - Method in class poker.GameInfo
Remove all uncalled chips from the pot
removeUncalledChips() - Method in class poker.Pot
Remove all uncalled chips from the pot
removeUncalledChips(Pot) - Method in class poker.Pot
Remove all uncalled chips from the pot
replaceCard(Card) - Method in class poker.Deck
Place a card back into the deck.
report(String) - Method in class poker.util.Reporter
Print a message to the current output stream.
report(String, int) - Method in class poker.util.Reporter
Print a message to the current output stream if the priority is high enough.
reportb(String) - Method in class poker.util.Reporter
Print a message to the current output stream.
Reporter - Class in poker.util
Handles reporting messages to stdout or stderr, and logging messages to files.
Reporter() - Constructor for class poker.util.Reporter
 
Reporter(String) - Constructor for class poker.util.Reporter
 
ReportListener - Interface in poker.util
ReportListener is a interface to recieve all of the logged strings sent to the reporter.
reportMessage(String) - Method in interface poker.util.ReportListener
 
reset() - Method in class poker.Deck
Places all cards back into the deck.
resetBankRoll() - Method in class poker.PlayerInfo
 
returnChips(int) - Method in class poker.PlayerInfo
replace the chips in the players stack
revealHand(String, Card, Card) - Method in class poker.GameInfo
Reveal a players hand in a showdown.
revealHand(int, Card, Card) - Method in class poker.GameInfo
Reveal a players hand in a showdown.
revealHand(Card, Card) - Method in class poker.PlayerInfo
Reveal the hole cards in a showdown
river(Card) - Method in class poker.GameInfo
Proceed to stage RIVER
RIVER - Static variable in class poker.Holdem
 
round(double, int) - Static method in class poker.util.Reporter
 

S

save() - Method in class poker.PlayerInfo
 
savePreferences(String) - Method in class poker.util.Preferences
Flush current preferences to disk.
savePreferences() - Method in class poker.util.Preferences
Flush current preferences to disk.
saveToFile(String) - Method in class poker.Context
append context data to the given file
setAction(int) - Method in class poker.Context
 
setActionContext(int, double, boolean, int, double, int) - Method in class poker.Context
 
setActive(boolean) - Method in class poker.util.Reporter
 
setBankRoll(int) - Method in class poker.PlayerInfo
 
setBankRollAndSave(int) - Method in class poker.PlayerInfo
 
setBetSize(int) - Method in class poker.Context
 
setBoardContext(Hand) - Method in class poker.Context
 
setButton(int) - Method in class poker.GameInfo
Set the Button.
setCard(int, int) - Method in class poker.Card
Change this card to another.
setCard(int, Card) - Method in class poker.Hand
Set the card at pos to the given card
setCurrentPlayerPosition(int) - Method in class poker.GameInfo
Set the current player position
setDebug(boolean) - Method in class poker.util.Reporter
 
setDirty(boolean) - Method in class poker.util.Preferences
 
setGameContext(int, int, int) - Method in class poker.Context
 
setHandContext(Hand, double, double) - Method in class poker.Context
 
setHistoryContext(int, int, double) - Method in class poker.Context
 
setIndex(int) - Method in class poker.Card
Change the index of the card.
setInHand(boolean) - Method in class poker.Context
 
setLimits(int, int, int) - Method in class poker.GameInfo
 
setLogDir(String) - Method in class poker.GameInfo
 
setLogFile(String) - Method in class poker.util.Reporter
 
setNoLimit(boolean) - Method in class poker.GameInfo
 
setNumRaises(int) - Method in class poker.Context
 
setPlayerContext(int, int, int, int, boolean) - Method in class poker.Context
 
setPot(int) - Method in class poker.GameInfo
Set the pot size
setPotSize(int) - Method in class poker.Context
 
setPreference(String, String) - Method in class poker.util.Preferences
Set a preference.
setPreference(String, int) - Method in class poker.util.Preferences
Set a preference.
setPreference(String, long) - Method in class poker.util.Preferences
Set a preference.
setPreference(String, boolean) - Method in class poker.util.Preferences
Set a preference.
setPreference(String, double) - Method in class poker.util.Preferences
Set a preference.
setSawCards(boolean) - Method in class poker.Context
 
setSeed(long) - Method in class poker.Deck
 
setSimulation(boolean) - Method in class poker.GameInfo
 
setThreshold(int) - Method in class poker.Pot
 
setUseAllInRules(boolean) - Method in class poker.GameInfo
 
setZipMode(boolean) - Method in class poker.GameInfo
Zip mode is a flag for bots to think at a reduced capacity, where speed of play is valued over quality of decisions.
SEVEN - Static variable in class poker.Card
 
SHOWDOWN - Static variable in class poker.Holdem
 
showdownEvent(int, Card, Card) - Method in interface poker.GameObserver
 
showdownEvent(int, Card, Card) - Method in interface poker.Player
Player pos has shown two cards.
shuffle() - Method in class poker.Deck
Shuffles the cards in the deck.
SIX - Static variable in class poker.Card
 
size() - Method in class poker.Hand
Get the size of the hand.
SMALL_BLIND - Static variable in class poker.Holdem
 
smallBlind() - Method in class poker.GameInfo
Small Blind the current player.
smallBlind() - Method in class poker.PlayerInfo
The Player pays the small blind
sort() - Method in class poker.Hand
Bubble Sort the hand to have cards in descending order, but card index.
SPADES - Static variable in class poker.Card
 
stageEvent(int) - Method in interface poker.GameObserver
 
stageEvent(int) - Method in interface poker.Player
A new stage (betting round) has begun.
startNewGame() - Method in class poker.GameInfo
Before a new game is played, this should always be called.
startNewGame(int) - Method in class poker.GameInfo
Before a new game is played, this should always be called.
startNewGame() - Method in class poker.PlayerInfo
Start a new game with this player

T

TEN - Static variable in class poker.Card
 
THREE - Static variable in class poker.Card
 
toIndex(int, int) - Static method in class poker.Card
convert a rank and a suit to an index
toString() - Method in class poker.Card
Obtain a String representation of this Card
toString() - Method in class poker.Context
 
toString() - Method in class poker.Deck
 
toString() - Method in class poker.GameRecord
 
toString() - Method in class poker.Hand
Get a string representation of this Hand.
toString() - Method in class poker.PlayerInfo
 
toString() - Method in class poker.Pot
 
toString() - Method in class poker.util.Preferences
 
toString(char) - Method in class poker.util.Preferences
 
toStringFull() - Method in class poker.GameRecord
 
turn(Card) - Method in class poker.GameInfo
Proceed to stage TURN
TURN - Static variable in class poker.Holdem
 
TWO - Static variable in class poker.Card
 

U

U_ALLIN - Static variable in class poker.Holdem
 
U_BBLIND - Static variable in class poker.Holdem
 
U_BET - Static variable in class poker.Holdem
 
U_CALL - Static variable in class poker.Holdem
 
U_CHECK - Static variable in class poker.Holdem
 
U_FOLD - Static variable in class poker.Holdem
 
U_NULL - Static variable in class poker.Holdem
 
U_RAISE - Static variable in class poker.Holdem
 
U_SBLIND - Static variable in class poker.Holdem
 
unmunkString(String) - Static method in class poker.util.Preferences
Take a munked-up string and fix it.
USE_DATE - Static variable in class poker.GameInfo
 
USE_REVERSE_BLINDS - Static variable in class poker.GameInfo
 
useAllInRules() - Method in class poker.GameInfo
 
useReverseBlinds() - Method in class poker.GameInfo
Find out if we should use reverse blinds or not.

V

valid() - Method in class poker.Card
Test if the card is valid.
validPlayer(int) - Method in class poker.GameInfo
Check if a player position is valid in this game

W

win(double) - Method in class poker.PlayerInfo
Give the player some money
winEvent(int, int, String) - Method in interface poker.GameObserver
 
winEvent(int, int, String) - Method in interface poker.Player
A player at pos has won amount with the hand handName

A B C D E F G H I J K L M N P Q R S T U V W
meerkat