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

A

ACE - Static variable in class poker.Card
 
aceOnBoard() - Method in class poker.ai.Context
 
ACTION - Static variable in class poker.online.PokerConsts
 
action() - Method in class poker.Player
Requests an action from the player (FOLD, CALL, RAISE) Called when it is the Player's turn to act.
actions - Static variable in class poker.Holdem
 
activePlayer(int) - Method in class poker.GameInfo
Test if a player at a specific position is active in the game.
add(ProbTriple) - Method in class poker.ai.ProbTriple
Add the values of one triple into this one.
addAction(int) - Method in class poker.ai.model.ContextItem
 
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.
addPlayer(String, Player) - Method in class poker.Dealer
Add a player to the next game (if there is room)
addPlayer(String, String) - 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() - Method in class poker.PlayerInfo
Determine if a player is All-In
allIn(Card, Card) - Method in class poker.GameInfo
Signal All-In condition after the flop
allIn(Card, Card, Card, Card, Card) - Method in class poker.GameInfo
Signal All-In condition before the flop
append(byte) - Method in class poker.util.ByteArray
Append a byte
append(byte[]) - Method in class poker.util.ByteArray
Append an array of bytes
append(ByteArray) - Method in class poker.util.ByteArray
Append a ByteArray
append(double) - Method in class poker.util.ByteArray
Append a double
append(int) - Method in class poker.util.ByteArray
Append an int (4 bytes)
append(long) - Method in class poker.util.ByteArray
Append a long
append(String) - Method in class poker.util.ByteArray
Append a String.
append(String, boolean) - Method in class poker.util.ByteArray
 
append(String, int) - Method in class poker.util.ByteArray
Append a String.
appendFile(String) - Method in class poker.util.ByteArray
Construct a ByteArray from the bytes of a file.
appendLog(String) - Method in class poker.util.Reporter
Logs a message to a file.
appendObject(Serializable) - Method in class poker.util.ByteArray
Write a serializable object to the ByteArray

B

BAD_CARD - Static variable in class poker.Card
 
BADNICK - Static variable in class poker.online.PokerConsts
 
BADPASS - Static variable in class poker.online.PokerConsts
 
BET - Static variable in class poker.Holdem
 
bet(int) - Method in class poker.PlayerInfo
The player bets
betLoop() - Method in class poker.Dealer
 
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)
bettors - Variable in class poker.Dealer
 
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
 
BLIND - Static variable in class poker.online.PokerConsts
 
boardString() - Method in class poker.GameRecord
 
BotPlayer - class poker.online.BotPlayer.
BotPlayer handles all of the network communication needed to play on the poker server.
BotPlayer(Player, String, int, String, String) - Constructor for class poker.online.BotPlayer
Constructor.
BotPlayer(String) - Constructor for class poker.online.BotPlayer
Constructor.
ByteArray - class poker.util.ByteArray.
This class stores a resizable array of bytes.
ByteArray() - Constructor for class poker.util.ByteArray
 
ByteArray(byte[]) - Constructor for class poker.util.ByteArray
Construct a ByteArray from an array of bytes
ByteArray(File) - Constructor for class poker.util.ByteArray
Construct a ByteArray from the bytes of a file.
ByteArray(int) - Constructor for class poker.util.ByteArray
Construct a ByteArray with the given starting capacity
bytesToInt(byte[]) - Static method in class poker.util.ByteArray
 
bytesToLong(byte[]) - Static method in class poker.util.ByteArray
 

C

cacheHandStrengths(Hand, int[][]) - Method in class poker.ai.model.WeightTable
Cache all possible hand strengths for the current board.
CALL - Static variable in class poker.Holdem
 
CALL - Static variable in class poker.online.PokerConsts
 
call() - Method in class poker.GameInfo
Call the current player
call(int) - Method in class poker.PlayerInfo
The player calls
capacity() - Method in class poker.util.ByteArray
Obtain the current capacity
Card - class poker.Card.
Represents a playing card from a set of cards {0..51} which map to cards having a suit {0..3} <==> {CLUBS,DIAMONDS,HEARTS,SPADES} and a face value {0..12} <==> {2..ACE}
Card() - Constructor for class poker.Card
Constructor -- makes an empty card.
Card(char, char) - Constructor for class poker.Card
Constructor.
Card(int) - Constructor for class poker.Card
Constructor.
Card(int, int) - Constructor for class poker.Card
Constructor.
Card(String) - Constructor for class poker.Card
 
cardsLeft() - Method in class poker.Deck
Obtain the number of cards left in the deck
CHANGE_FACE - Static variable in class poker.online.PokerConsts
 
charToAction(char) - Method in class poker.PlayerInfo
Convert a character representing an action to an Action number.
CHAT - Static variable in class poker.online.PokerConsts
 
chat(String) - Method in class poker.online.BotPlayer
 
CHATTER - Static variable in class poker.online.PokerConsts
 
CHATTERS - Static variable in class poker.online.PokerConsts
 
CHECK - Static variable in class poker.Holdem
 
check() - Method in class poker.PlayerInfo
The player checks
chooseHand(Deck) - Method in class poker.ai.model.WeightTable
Given a Deck, choose a hand where a spinner is below the normalized weight table entry.
chooseHand(double) - Method in class poker.ai.model.WeightTable
Treating the table as a probability distribution, choose a hand from the table, given real a value from 0..1.
chooseHandDist(Deck) - Method in class poker.ai.model.WeightTable
Given a Deck, choose a hand from the weight table as if it were a large probability distribution.
chooseMaxHand() - Method in class poker.ai.model.WeightTable
Choose a maximum likely hand from the remaining deck, where the a hand is chosen randomly from the most likely hands the opponent may have.
clear() - Method in class poker.util.ByteArray
Erase and empty the contents of the ByteArray
clearCard(Card) - Method in class poker.ai.model.WeightTable
Set all entries with this card to weights of zero
Client - class poker.online.Client.
A client opens a socket to a server at the specified address and port.
Client(String, int) - Constructor for class poker.online.Client
Construct a Client.
close() - Method in class poker.online.Portal
close the connections for this Portal.
CLUBS - Static variable in class poker.Card
 
compareHands(Hand, Hand) - Method in class poker.HandEvaluator
Compares two 7 card hands against each other.
compareHands(int, Hand) - Method in class poker.HandEvaluator
Compares two 5-7 card hands against each other.
confusion(Vector, Predictor) - Method in class poker.ai.model.Evaluator
Perform an analysis of the predictor.
ConfusionMatrix - class poker.ai.model.ConfusionMatrix.
 
ConfusionMatrix() - Constructor for class poker.ai.model.ConfusionMatrix
 
connect() - Method in class poker.online.Client
Connect to the destination.
consoleOff() - Method in class poker.util.Reporter
disable the output to console
consoleOn() - Method in class poker.util.Reporter
Set the output to console
Context - class poker.ai.Context.
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.ai.Context
 
Context(PlayerInfo, int, double) - Constructor for class poker.ai.Context
 
Context(String) - Constructor for class poker.ai.Context
 
ContextItem - class poker.ai.model.ContextItem.
 
ContextItem(String) - Constructor for class poker.ai.model.ContextItem
 
ContextPredictor - class poker.ai.model.ContextPredictor.
Stores and manages player Action Frequencies in simplified contexts for simple opponent modelling.
ContextPredictor() - Constructor for class poker.ai.model.ContextPredictor
Default Constructor.
ContextPredictor(String) - Constructor for class poker.ai.model.ContextPredictor
Construct from a saved file.
contextString(Context) - Method in class poker.ai.model.ContextPredictor
 
copy(TriangularWeightTable) - Method in class poker.util.TriangularWeightTable
Store a copy of a given table into this table.
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.
CrudePotential1(Card, Card, Hand) - Static method in class poker.ai.HandPotential
A crude but fast approximation of PPOT.

D

deal() - Method in class poker.Deck
Obtain the next card in the deck.
dealCard() - Method in class poker.Deck
Obtain the next card in the deck.
dealCards() - Method in class poker.Dealer
 
Dealer - class poker.Dealer.
This is a standard dealer class for managing a Holdem game.
Dealer() - Constructor for class poker.Dealer
Constructor.
Dealer(int) - Constructor for class poker.Dealer
Constructor w/ random seed.
debug(String) - Method in class poker.util.Reporter
 
debugb(String) - Method in class poker.util.Reporter
 
Deck - class poker.Deck.
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.
Deck(long, long) - Constructor for class poker.Deck
Constructor w/ shuffle seed.
DIAMONDS - Static variable in class poker.Card
 
disconnect() - Method in class poker.online.Client
Close the connection gracefully.
doAction(int) - Method in class poker.GameInfo
 
doChatter(String) - Method in class poker.online.BotPlayer
 
dotProduct(ProbTriple) - Method in class poker.ai.ProbTriple
Add the values of one triple into this one.

E

EIGHT - Static variable in class poker.Card
 
empty() - Method in class poker.util.Preferences
 
ensureCapacity(int) - Method in class poker.util.ByteArray
Ensure that the ByteArray has a minimal capacity.
estimateAccuracy(Vector, Predictor) - Method in class poker.ai.model.Evaluator
 
Evaluator - class poker.ai.model.Evaluator.
 
Evaluator() - Constructor for class poker.ai.model.Evaluator
 
Evaluator(double) - Constructor for class poker.ai.model.Evaluator
 
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[]) - Method in class poker.HandEvaluator
 
findCard(Card) - Method in class poker.Deck
Find position of Card in Deck.
FIVE - Static variable in class poker.Card
 
FLOP - Static variable in class poker.Holdem
 
FLOP - Static variable in class poker.online.PokerConsts
 
flop(Card, Card, Card) - Method in class poker.GameInfo
Proceed to stage FLOP
flushPossible(int) - Method in class poker.ai.Context
 
FOLD - Static variable in class poker.Holdem
 
FOLD - Static variable in class poker.online.PokerConsts
 
fold() - Method in class poker.GameInfo
Fold the current player
fold() - Method in class poker.PlayerInfo
The Player has folded
fold(String) - Method in class poker.GameInfo
Fold a player (when it is not their turn)
format(String) - Method in class poker.util.Reporter
 
FOUR - Static variable in class poker.Card
 

G

GameInfo - class poker.GameInfo.
Stores all of the info defining a single game of poker.
GameInfo() - Constructor for class poker.GameInfo
Default Constructor
gameOver() - Method in class poker.GameInfo
Report the end of the game and log player and game history.
GameRecord - class poker.GameRecord.
 
GameRecord(GameInfo) - Constructor for class poker.GameRecord
 
gDeck - Variable in class poker.Dealer
 
generate(Vector, Predictor) - Method in class poker.ai.model.ConfusionMatrix
Perform an analysis of the predictor.
generateFine(Vector, Predictor) - Method in class poker.ai.model.ConfusionMatrix
Perform a more sensitive analysis of the predictor.
generateHandStrength(Card, Card, Hand, int[][]) - Method in class poker.ai.model.WeightTable
Generate a hand strength using cached hand ranks
GET_FACE - Static variable in class poker.online.PokerConsts
 
GET_GRAPH - Static variable in class poker.online.PokerConsts
 
GET_INFO - Static variable in class poker.online.PokerConsts
 
getAccuracy() - Method in class poker.ai.model.ConfusionMatrix
 
getAction() - Method in class poker.ai.Context
 
getAction(int, int) - Method in class poker.GameRecord
 
getAction(int, int) - Method in class poker.PlayerInfo
Obtain a specific action from the player's actions.
getActionAccuracy(int) - Method in class poker.ai.model.ConfusionMatrix
 
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.
getAddress() - Method in class poker.online.Portal
Get the address at the other end of the portal.
getAddressName() - Method in class poker.online.Portal
 
getAmountInPot() - Method in class poker.PlayerInfo
Obtain the amount the player has put in the pot.
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
getBankRoll() - Method in class poker.PlayerInfo
 
getBest5CardHand(Hand) - 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
getBetRatio() - Method in class poker.ai.Context
 
getBetSize() - Method in class poker.GameInfo
Get the current size of the bet.
getBetSize() - Method in class poker.ai.Context
 
getBetsToCall() - Method in class poker.ai.Context
 
getBetsToCall(int) - Method in class poker.GameInfo
Get the number of bets a player must call to stay in
getBoard() - Method in class poker.GameInfo
obtain a Hand containing the board cards.
getBoard() - Method in class poker.ai.Context
 
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.
getButton() - Method in class poker.GameInfo
 
getButton() - Method in class poker.ai.Context
 
getByte(int) - Method in class poker.util.ByteArray
Get the byte stored at a given index.
getByteArray(int, int) - Method in class poker.util.ByteArray
 
getBytes() - Method in class poker.util.ByteArray
Obtain the actual bytes stored.
getBytes(int, int) - Method in class poker.util.ByteArray
 
getCall() - Method in class poker.ai.ProbTriple
 
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 a specified card in the hand
getCardArray() - Method in class poker.Hand
Obtain the array of card indexes for this hand.
getCell(int, int) - Method in class poker.util.TriangularWeightTable
Obtain the value linking elements x and y
getCommitted() - Method in class poker.ai.Context
 
getCommittment() - Method in class poker.ai.Context
 
getContexts() - Method in class poker.GameRecord
 
getCurrentPlayerInfo() - Method in class poker.GameInfo
 
getCurrentPlayerName() - Method in class poker.GameInfo
 
getCurrentPlayerPosition() - Method in class poker.GameInfo
 
getDoublePreference(String) - Method in class poker.util.Preferences
given a key preference name, obtain its value as an int.
getError() - Method in class poker.online.Client
 
getFold() - Method in class poker.ai.ProbTriple
 
getFrequency() - Method in class poker.ai.model.ContextItem
 
getFrequency(int) - Method in class poker.ai.model.ContextItem
 
getFrequency(String) - Method in class poker.ai.model.ContextPredictor
 
getGameInfo() - Method in class poker.Dealer
Obtain the game info for the current game.
getGameInfo() - Method in class poker.PlayerInfo
Get the context of the last action made by this player.
getHand() - Method in class poker.ai.Context
 
getHandPotential() - Method in class poker.ai.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.ai.Context
 
getHandStrength(Card, Card) - Method in class poker.ai.model.WeightTable
Get a cached hand strength.
getHandType(Card, Card) - Method in class poker.ai.model.WeightTable
 
getHandType(int, int, boolean) - Method in class poker.ai.model.WeightTable
 
getHandWeight(Card, Card) - Method in class poker.ai.model.WeightTable
Obtain the weight for a particular 2-card combination.
getHandWeight(Hand) - Method in class poker.ai.model.WeightTable
Obtain the weight for a particular 2-card combination.
getHighBet() - Method in class poker.GameInfo
 
getID() - Method in class poker.GameInfo
 
getIndex() - Method in class poker.Card
Return the integer index for this card.
getIndex(int, int) - Method in class poker.util.TriangularWeightTable
Get the actual offset into the array for a given pair.
getInHand() - Method in class poker.ai.Context
 
getInt(int) - Method in class poker.util.ByteArray
Read an int (4 bytes) from the ByteArray
getIntPreference(String) - Method in class poker.util.Preferences
given a key preference name, obtain its value as an int.
getLabel() - Method in class poker.ai.model.ContextItem
 
getLastAction() - Method in class poker.PlayerInfo
Obtain the last action made by the player
getLastAction() - Method in class poker.ai.Context
 
getLastActionCode() - Method in class poker.PlayerInfo
A single integer code for the last action made
getLastActionCode() - Method in class poker.ai.Context
 
getLastActionCode(int, int) - Static method in class poker.ai.Context
 
getLastAmountCalled() - Method in class poker.PlayerInfo
Get the amount called by this player during his last action
getLastBetsToCall() - Method in class poker.PlayerInfo
Obtain the amount of bets the player had to call during their last action.
getLastBetsToCall() - Method in class poker.ai.Context
 
getLastNPot() - Method in class poker.ai.HandPotential
obtain the PPot calculated during the last call to npot.
getLastPPot() - Method in class poker.ai.HandPotential
obtain the PPot calculated during the last call to ppot.
getLong(int) - Method in class poker.util.ByteArray
Read an long (8 bytes) from the ByteArray
getLowBet() - Method in class poker.GameInfo
 
getMax() - Method in class poker.util.TriangularWeightTable
return the maximum value in the table
getMessageData() - Method in class poker.online.Message
If a message has been read, this will return the data of the last message read.
getMinBet() - Method in class poker.ai.Context
 
getName() - Method in class poker.PlayerInfo
obtain the player's name
getNetGain() - Method in class poker.PlayerInfo
 
getNumActivePlayers() - Method in class poker.GameInfo
 
getNumActivePlayers() - Method in class poker.ai.Context
 
getNumBetter() - Method in class poker.HandEvaluator
Get the number of hands better than the last hand ranked.
getNumPlayers() - Method in class poker.GameInfo
 
getNumPlayers() - Method in class poker.ai.Context
 
getNumRaises() - Method in class poker.GameInfo
 
getNumRaises() - Method in class poker.ai.Context
 
getNumSuits() - Method in class poker.ai.Context
 
getNumTied() - Method in class poker.HandEvaluator
Get the number of hands tied with the last hand ranked.
getNumToAct() - Method in class poker.GameInfo
 
getNumUnactedPlayers() - Method in class poker.ai.Context
 
getNumWorse() - Method in class poker.HandEvaluator
Get the number of hands worse than the last hand ranked.
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
getPort() - Method in class poker.online.Portal
 
getPos() - Method in class poker.util.ByteArray
 
getPosition() - Method in class poker.ai.Context
 
getPositionCode() - Method in class poker.ai.Context
 
getPot() - Method in class poker.GameInfo
 
getPotOdds() - Method in class poker.ai.Context
 
getPotSize() - Method in class poker.ai.Context
 
getPredictionAccuracy(int) - Method in class poker.ai.model.ConfusionMatrix
 
getPreference(String) - Method in class poker.util.Preferences
given a key preference name, obtain its value.
getRaise() - Method in class poker.ai.ProbTriple
 
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
 
getRanks(Hand) - 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.
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.ai.Context
 
getSize() - Method in class poker.ai.model.ContextItem
 
getSmallBlindPosition() - Method in class poker.GameInfo
Determine the position of the small blind
getStage() - Method in class poker.GameInfo
 
getStage() - Method in class poker.ai.Context
 
getString(int) - Method in class poker.util.ByteArray
Read a string from the ByteArray.
getString(int, int) - Method in class poker.util.ByteArray
Read a string of a specific length from the ByteArray.
getSuit() - Method in class poker.Card
Obtain the suit of this card
getToAct() - Method in class poker.Dealer
 
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.
GETUPDATE - Static variable in class poker.online.PokerConsts
 
getValue(int) - Method in class poker.ai.ProbTriple
Get the probability for an action
getWeight(int) - Method in class poker.util.TriangularWeightTable
Get the weight at the given index.
getWinners() - Method in class poker.GameInfo
 
gInfo - Variable in class poker.Dealer
 
GOODBYE - Static variable in class poker.online.PokerConsts
 
GOODPASS - Static variable in class poker.online.PokerConsts
 

H

Hand - class poker.Hand.
Stores a Hand of Cards (up to a maximum of 7)
Hand() - Constructor for class poker.Hand
 
Hand(Hand) - Constructor for class poker.Hand
Duplicate an existing hand.
Hand(String) - Constructor for class poker.Hand
 
HandEvaluator - class poker.HandEvaluator.
Class for identifying / comparing / ranking Hands.
HandEvaluator() - Constructor for class poker.HandEvaluator
Construct a new Hand Evaluator.
HandPotential - class poker.ai.HandPotential.
Hand Potential.
Hand Potential is the calculation of the probability that a hand that is currently behind will be ahead as more board cards are dealt.
HandPotential() - Constructor for class poker.ai.HandPotential
 
handRank(Card, Card, Hand) - Method in class poker.HandEvaluator
Calculates the probability of having the best hand against one opponent.
handRank(Card, Card, Hand, int) - Method in class poker.HandEvaluator
Calculates the probability of having the best hand against several opponents.
handRank(Card, Card, int[][], Deck) - Method in class poker.HandEvaluator
Calculate the strength of the given hand.
handStrength(Card, Card, Hand) - Method in class poker.ai.model.WeightTable
Calculate the strength of the given hand.
handStrength(Card, Card, Hand, Deck) - Method in class poker.ai.model.WeightTable
Calculate the strength of the given hand.
handStrength(Card, Card, Hand, int[][]) - Method in class poker.ai.model.WeightTable
Calculate the strength of the given hand.
handStrength(Card, Card, int[][]) - Method in class poker.ai.model.WeightTable
Calculate the strength of the given hand.
handStrength(Card, Card, int[][], Deck) - Method in class poker.ai.model.WeightTable
Calculate the strength of the given hand.
HEARTS - Static variable in class poker.Card
 
highCards(int) - Method in class poker.ai.Context
 
Holdem - class poker.Holdem.
Useful Holdem Constants
Holdem() - Constructor for class poker.Holdem
 
HOLE_CARDS - Static variable in class poker.online.PokerConsts
 
holes - Variable in class poker.Dealer
 

I

INFORMATION - Static variable in class poker.online.PokerConsts
 
inGame(String) - Method in class poker.Dealer
Check if a player with a given name is already in the game.
inGame(String) - Method in class poker.GameInfo
Test if a player is in this game or not.
init() - Method in class poker.ai.model.ConfusionMatrix
 
init(Preferences) - Method in class poker.Player
 
init(Socket) - Method in class poker.online.Portal
initialize the Portal to use a socket
initTable(double) - Method in class poker.util.TriangularWeightTable
initialize all entries in the table to val.
initTable(int, double) - Method in class poker.util.TriangularWeightTable
create a table of size*size where all entries are initialized to val.
insertPlayer(String, Player, int) - Method in class poker.Dealer
Add a player to the next game (if there is room)
insertPlayer(String, String, int) - Method in class poker.GameInfo
Insert a new player into the game.
intToBytes(int) - Static method in class poker.util.ByteArray
Converts a long to a 4-byte array.
isCommitted() - Method in class poker.PlayerInfo
Test if a player has volunatrily committed yet in this round
isNative() - Method in class poker.HandEvaluator
Returns true if the native evaluation library is loaded.

J

JACK - Static variable in class poker.Card
 
JOIN_GAME - Static variable in class poker.online.PokerConsts
 

K

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

L

lastAction() - Method in class poker.PlayerInfo
A single integer code for the last action made
length() - Method in class poker.util.TriangularWeightTable
The total number of entries in the table.
level - Variable in class poker.util.Reporter
Non-negative value indicating priority threshold for reporting messages.
load(String) - Method in class poker.ai.model.ContextPredictor
 
load(String) - Method in interface poker.ai.model.Predictor
Load any needed data from a file
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
loadPlayer(String) - Static method in class poker.Player
Load up a player from a (*.pd) player description file.
loadPreferences(String) - Method in class poker.util.Preferences
Load preferences fresh from disk
LOG_DIR - Variable in class poker.GameInfo
 
LOG_DUMP - Variable in class poker.GameInfo
 
LOG_FILE - Variable in class poker.GameInfo
 
LOG_GAME - Variable in class poker.GameInfo
 
log(String, String) - Static method in class poker.util.Reporter
Logs a message to a file.
logGame() - Method in class poker.GameInfo
 
longToBytes(long) - Static method in class poker.util.ByteArray
Converts a long to a 8-byte array.

M

main(String[]) - Static method in class poker.online.BotPlayer
Main entry point.
makeEmpty() - Method in class poker.Hand
Remove the all cards from the hand.
makeStdWeightTable() - Method in class poker.ai.model.WeightTable
Creates a generic weight table for a likely distribution for players after the flop.
MAX_CARDS - Static variable in class poker.Hand
 
MAX_PLAYERS - Static variable in class poker.Holdem
 
MAX_PLAYERS - Static variable in class poker.online.PokerConsts
 
MAX_RAISES - Static variable in class poker.Holdem
 
merge(TriangularWeightTable) - Method in class poker.util.TriangularWeightTable
Merge a table t into this table (50% mixture)
Message - class poker.online.Message.
Wrapper for sending standard message packages.
Message() - Constructor for class poker.online.Message
 
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(Hand) - Static method in class poker.HandEvaluator
Given a hand, return a string naming the hand ('Ace High Flush', etc..)
NEW_STAGE - Static variable in class poker.online.PokerConsts
 
newGame(GameInfo, Card, Card, int) - Method in class poker.Player
Start playing a new game.
NEXT_TO_ACT - Static variable in class poker.online.PokerConsts
 
nextActivePlayer(int) - Method in class poker.GameInfo
Given a position, returns the position of the next active player
nextBoardCard() - Method in class poker.Dealer
 
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
 
normalize() - Method in class poker.ai.ProbTriple
Normalize the values in the triple to sum to 1.0
normalize() - Method in class poker.util.TriangularWeightTable
normalize the entries in the weight table to sum to 1.0
NUM_ACTIONS - Static variable in class poker.ai.model.ContextItem
 
NUM_CARDS - Static variable in class poker.Deck
 
NUM_CARDS - Static variable in class poker.Card
 
NUM_RANKS - Static variable in class poker.Card
 
NUM_SUITS - Static variable in class poker.Card
 

O

observeAction(Context) - Method in class poker.ai.model.ContextPredictor
 
observeAction(Context) - Method in interface poker.ai.model.Predictor
Give a training example of an observed action to the predictor.

P

pad(String, int) - Static method in class poker.Dealer
 
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.
pickRandomCard() - Method in class poker.Deck
Return a randomly selected card from within the deck without removing it.
PING - Static variable in class poker.online.PokerConsts
 
Player - class poker.Player.
An interface for a poker player.
Player() - Constructor for class poker.Player
 
playerCommitted(int) - Method in class poker.GameInfo
Test if a player has committed in the current betting round.
PlayerInfo - class poker.PlayerInfo.
Stores all of the information for a player during a poker game.
PlayerInfo(String, GameInfo) - Constructor for class poker.PlayerInfo
Constructor.
PlayerInfo(String, String, GameInfo) - Constructor for class poker.PlayerInfo
Constructor.
playGame() - Method in class poker.Dealer
Play one game of poker with the current set of players
poker - package poker
 
poker.ai - package poker.ai
 
poker.ai.model - package poker.ai.model
 
poker.online - package poker.online
 
poker.util - package poker.util
 
PokerConsts - class poker.online.PokerConsts.
 
PokerConsts() - Constructor for class poker.online.PokerConsts
 
PONG - Static variable in class poker.online.PokerConsts
 
Portal - class poker.online.Portal.
A Portal handles the reading and writing of data to a socket connection.
Portal() - Constructor for class poker.online.Portal
Default constructor.
Portal(BufferedInputStream, BufferedOutputStream) - Constructor for class poker.online.Portal
Create a Portal from an input and output stream
Portal(Socket) - Constructor for class poker.online.Portal
Construct a portal from a socket
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
ppot_raw(Card, Card, Hand, boolean) - Method in class poker.ai.HandPotential
Calculate the raw (unweighted) PPot and NPot of a hand.
ppot(Card, Card, Hand, WeightTable, boolean) - Method in class poker.ai.HandPotential
Calculate the PPot and NPot of a hand.
predictAction(Context) - Method in class poker.ai.model.ContextPredictor
 
predictAction(Context) - Method in interface poker.ai.model.Predictor
Given a context, predict an action
Predictor - interface poker.ai.model.Predictor.
An interface to define an action predictor system.
Preferences - class poker.util.Preferences.
Handles the storage and retrieval of program preferences Note.
Preferences(String) - Constructor for class poker.util.Preferences
Create a new set of Preferences from a given file.
Preferences(String, boolean) - Constructor for class poker.util.Preferences
Load preferences fresh from disk
PREFLOP - Static variable in class poker.Holdem
 
PREFLOP - Static variable in class poker.online.PokerConsts
 
print() - Method in class poker.ai.model.ConfusionMatrix
 
print(String) - Method in class poker.Dealer
 
print(String) - Method in class poker.util.Reporter
Print a message to the current output stream.
println(String) - Method in class poker.Dealer
 
println(String) - Method in class poker.online.BotPlayer
 
println(String) - Method in class poker.util.Reporter
Print a message to the current output stream.
printTable() - Method in class poker.Dealer
 
printTable() - Method in class poker.online.BotPlayer
 
ProbTriple - class poker.ai.ProbTriple.
The Probabiltiy Triple Generator.
ProbTriple() - Constructor for class poker.ai.ProbTriple
Default constructor.
ProbTriple(double, double, double) - Constructor for class poker.ai.ProbTriple
Construct with the values given.
prompt(String) - Method in class poker.util.Reporter
Prompt the user for a string.
PROTOCOL - Static variable in class poker.online.PokerConsts
 

Q

QUEEN - Static variable in class poker.Card
 
QUIT_GAME - Static variable in class poker.online.PokerConsts
 
quitGame() - Method in class poker.online.BotPlayer
 

R

r - Variable in class poker.Dealer
 
RAISE - Static variable in class poker.Holdem
 
RAISE - Static variable in class poker.online.PokerConsts
 
raise() - Method in class poker.GameInfo
Raise the current player
raise(int) - Method in class poker.PlayerInfo
The player raises
randInt(int) - Method in class poker.util.Randomizer
Generate a random integer from 0 to range-1
Randomizer - class poker.util.Randomizer.
Looks after random number generation.
Randomizer() - Constructor for class poker.util.Randomizer
 
rankHand_Java(Hand) - Static method in class poker.HandEvaluator
Get a numerical ranking of this hand.
rankHand(Card, Card, Hand) - Method in class poker.HandEvaluator
Get a numerical ranking of this hand.
rankHand(Hand) - Method in class poker.HandEvaluator
Get a numerical ranking of this hand.
rankHand7(Hand) - Method in class poker.HandEvaluator
Get a numerical ranking of this hand.
readByte() - Method in class poker.online.Portal
Read the next byte from the input stream
readByte() - Method in class poker.util.ByteArray
 
readByteArray(int) - Method in class poker.util.ByteArray
 
readDouble() - Method in class poker.util.ByteArray
Read a double (8 bytes) from the ByteArray
readInt() - Method in class poker.online.Portal
Read the next 4 bytes from the input stream
readInt() - Method in class poker.util.ByteArray
Read an int (4 bytes) from the ByteArray
readLine() - Method in class poker.online.Portal
Read the next incoming bytes into a String until the newline character is reached.
readLine() - Static method in class poker.util.Reporter
Read a line of text from stdin.
readLong() - Method in class poker.util.ByteArray
Read a long (8 bytes) from the ByteArray
readMessage(Portal) - Method in class poker.online.Message
Read a message off the portal.
readObject() - Method in class poker.online.Portal
Read an object from the input stream
readObject() - Method in class poker.util.ByteArray
Write a serializable object to the ByteArray
readPString() - Method in class poker.util.ByteArray
Read a string of a specific length from the ByteArray.
readString() - Method in class poker.util.ByteArray
Read a null terminated string from the ByteArray.
readString() - Static method in class poker.util.Reporter
Return the next line typed by the user.
removeAllPlayers() - Method in class poker.Dealer
Remove all players from the next game.
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.
removePlayer(String) - Method in class poker.Dealer
Remove a player from the next game.
removePlayer(String) - Method in class poker.GameInfo
Remove a player from the game.
removeReportListener(ReportListener) - Method in class poker.util.Reporter
 
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 poker.util.Reporter.
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 poker.util.ReportListener.
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.
reset() - Method in class poker.util.ByteArray
 
revealHand(Card, Card) - Method in class poker.PlayerInfo
Reveal the hole cards in a showdown
revealHand(int, Card, Card) - Method in class poker.GameInfo
Reveal a players hand in a showdown.
revealHand(String, Card, Card) - Method in class poker.GameInfo
Reveal a players hand in a showdown.
reWeight(Card, Card, double) - Method in class poker.ai.model.WeightTable
ReWeight a particular 2-card combination by a given value.
reWeight(int, int, double) - Method in class poker.util.TriangularWeightTable
Mutliply the entry by a value
RIVER - Static variable in class poker.Holdem
 
RIVER - Static variable in class poker.online.PokerConsts
 
river(Card) - Method in class poker.GameInfo
Proceed to stage RIVER
round(double, int) - Static method in class poker.util.Reporter
 
run() - Method in class poker.Dealer
 
run() - Method in class poker.online.BotPlayer
 

S

save() - Method in class poker.PlayerInfo
 
save(String) - Method in class poker.ai.model.ContextPredictor
 
save(String) - Method in interface poker.ai.model.Predictor
Save any needed data to a file.
save(String) - Method in class poker.util.TriangularWeightTable
 
savePreferences() - Method in class poker.util.Preferences
Flush current preferences to disk.
saveToFile(String) - Method in class poker.ai.Context
append context data to the given file
scale() - Method in class poker.util.TriangularWeightTable
Scale all the entries up to a maximum value of 1.0
select() - Method in class poker.ai.ProbTriple
Randomly select an action from the triple.
select(double) - Method in class poker.ai.ProbTriple
Select an action from the triple using the given spinner.
select(double, boolean) - Method in class poker.ai.ProbTriple
Select an action from the triple distribution.
selectMax() - Method in class poker.ai.ProbTriple
Select the maximum value.
selectMax(double) - Method in class poker.ai.ProbTriple
Select the maximum value.
SET_FACE - Static variable in class poker.online.PokerConsts
 
set(double, double, double) - Method in class poker.ai.ProbTriple
Set the values given.
setAction(int) - Method in class poker.ai.Context
 
setActionContext(int, double, boolean, int, double, int) - Method in class poker.ai.Context
 
setActive(boolean) - Method in class poker.util.Reporter
 
setBankRoll(int) - Method in class poker.PlayerInfo
 
setBetMultiplier(int) - Method in class poker.GameInfo
Set the bet multiplier
setBetSize(int) - Method in class poker.ai.Context
 
setBoardContext(Hand) - Method in class poker.ai.Context
 
setButton(int) - Method in class poker.GameInfo
Set the Button.
setByte(int, byte) - Method in class poker.util.ByteArray
Set the byte at a given index
setCall(double) - Method in class poker.ai.ProbTriple
 
setCard(int, Card) - Method in class poker.Hand
Add a card to the hand.
setCard(int, int) - Method in class poker.Card
Change this card to another.
setCell(int, int, double) - Method in class poker.util.TriangularWeightTable
Set the value linking elements x and y
setCurrentPlayerPosition(int) - Method in class poker.GameInfo
Set the current player position
setDebug(boolean) - Method in class poker.util.Reporter
 
setExtraSeed(long) - Method in class poker.util.Randomizer
 
setFold(double) - Method in class poker.ai.ProbTriple
 
setGameContext(int, int, int) - Method in class poker.ai.Context
 
setHandContext(Hand, double, double) - Method in class poker.ai.Context
 
setHandWeight(Card, Card, double) - Method in class poker.ai.model.WeightTable
Set the weight for a particular 2-card combination.
setHistoryContext(int, int, double) - Method in class poker.ai.Context
 
setIndex(int) - Method in class poker.Card
Change the index of the card.
setInHand(boolean) - Method in class poker.ai.Context
 
setInput(BufferedInputStream) - Method in class poker.online.Portal
Set the input of a Portal.
setLogDir(String) - Method in class poker.GameInfo
 
setLogFile(String) - Method in class poker.util.Reporter
 
setNumRaises(int) - Method in class poker.ai.Context
 
setOutput(BufferedOutputStream) - Method in class poker.online.Portal
Set the output of a Portal.
setPlayerContext(int, int, int, int, boolean) - Method in class poker.ai.Context
 
setPotSize(int) - Method in class poker.ai.Context
 
setPreference(String, boolean) - Method in class poker.util.Preferences
Set a preference.
setPreference(String, double) - Method in class poker.util.Preferences
Set a preference.
setPreference(String, int) - Method in class poker.util.Preferences
Set a preference.
setPreference(String, String) - Method in class poker.util.Preferences
Set a preference.
setRaise(double) - Method in class poker.ai.ProbTriple
 
setSawCards(boolean) - Method in class poker.ai.Context
 
setSeed(int) - Method in class poker.Dealer
 
setSize(int) - Method in class poker.util.ByteArray
Set the size of the ByteArray
setThreaded(boolean) - Method in class poker.Dealer
 
setThreadSafe(boolean) - Method in class poker.HandEvaluator
 
setWeight(int, double) - Method in class poker.util.TriangularWeightTable
set the weight at index to value
SEVEN - Static variable in class poker.Card
 
SHOWDOWN - Static variable in class poker.Holdem
 
SHOWDOWN - Static variable in class poker.online.PokerConsts
 
showdown() - Method in class poker.Dealer
 
shuffle() - Method in class poker.Deck
Shuffles the cards in the deck.
shutdown() - Method in class poker.online.BotPlayer
 
SIX - Static variable in class poker.Card
 
size() - Method in class poker.Hand
Get the size of the hand.
size() - Method in class poker.util.ByteArray
 
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
 
START_NEW_GAME - Static variable in class poker.online.PokerConsts
 
startNewGame() - 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
startNewGame(int) - Method in class poker.GameInfo
Before a new game is played, this should always be called.
sum() - Method in class poker.util.TriangularWeightTable
Obtain the sum of the weight table

T

TEN - Static variable in class poker.Card
 
test() - Method in class poker.util.Randomizer
 
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
TOPTEN - Static variable in class poker.online.PokerConsts
 
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.Card
Obtain a String representation of this Card
toString() - Method in class poker.ai.ProbTriple
 
toString() - Method in class poker.ai.Context
 
toString() - Method in class poker.ai.model.WeightTable
PRINTING METHODS
toString() - Method in class poker.util.TriangularWeightTable
Obtain a string representation of this object.
toString() - Method in class poker.util.ByteArray
Convert to a string representation
toString() - Method in class poker.util.Preferences
 
toString2() - Method in class poker.GameRecord
 
toStringSmall() - Method in class poker.ai.model.WeightTable
 
TriangularWeightTable - class poker.util.TriangularWeightTable.
Creates a lower triangular matrix for storing weights between the two axis.
TriangularWeightTable(int) - Constructor for class poker.util.TriangularWeightTable
Create a table of a given size
TriangularWeightTable(int, double) - Constructor for class poker.util.TriangularWeightTable
Create a table of a given size and initialize elements to given value.
TriangularWeightTable(String) - Constructor for class poker.util.TriangularWeightTable
 
TURN - Static variable in class poker.Holdem
 
TURN - Static variable in class poker.online.PokerConsts
 
turn(Card) - Method in class poker.GameInfo
Proceed to stage TURN
TWO - Static variable in class poker.Card
 

U

U_ALL_IN - Static variable in class poker.GameInfo
 
U_BBLIND - Static variable in class poker.GameInfo
 
U_BET - Static variable in class poker.GameInfo
 
U_CALL - Static variable in class poker.GameInfo
 
U_CHECK - Static variable in class poker.GameInfo
 
U_FOLD - Static variable in class poker.GameInfo
 
U_GAME_OVER - Static variable in class poker.GameInfo
 
U_RAISE - Static variable in class poker.GameInfo
 
U_REVEAL_HAND - Static variable in class poker.GameInfo
 
U_SBLIND - Static variable in class poker.GameInfo
 
U_SHOWDOWN - Static variable in class poker.GameInfo
 
U_STAGE - Static variable in class poker.GameInfo
 
unmunkString(String) - Static method in class poker.util.Preferences
Take a munked-up string and fix it.
unread() - Method in class poker.online.Portal
 
UPDATE - Static variable in class poker.online.PokerConsts
 
update(int, int) - Method in class poker.Player
Receive an update on the current game.
updatePlayers(int, int) - Method in class poker.Dealer
 
updatePlayers(int, int) - Method in class poker.online.BotPlayer
 

V

valid() - Method in class poker.ai.ProbTriple
 
validPlayer(int) - Method in class poker.GameInfo
Check if a player position is valid in this game

W

weight(double) - Method in class poker.ai.ProbTriple
Multiply all entries by a constant.
WeightTable - class poker.ai.model.WeightTable.
A Weight Table of all possible 2-card combinations.
WeightTable() - Constructor for class poker.ai.model.WeightTable
Constructor (with entries initialized to 1.0)
WeightTable(int) - Constructor for class poker.ai.model.WeightTable
Constructor
WeightTable(String) - Constructor for class poker.ai.model.WeightTable
Constructor (load from file)
win(int) - Method in class poker.PlayerInfo
Give the player some money
WINNERS - Static variable in class poker.online.PokerConsts
 
write(int, int) - Method in class poker.util.ByteArray
 
writeByte(byte) - Method in class poker.online.Portal
Write a byte to the output stream
writeBytes(byte[]) - Method in class poker.online.Portal
Write a byte to the output stream
writeInt(int) - Method in class poker.online.Portal
Write an int to the output stream
writeMessage(int, ByteArray, Portal) - Static method in class poker.online.Message
Write a message to a Portal.
writeMessage(int, Portal) - Static method in class poker.online.Message
Write a message to a Portal.
writeObject(Object) - Method in class poker.online.Portal
Write an object to the output stream
writeString(String) - Method in class poker.online.Portal
Write a string to the output stream.
writeToFile(File) - Method in class poker.util.ByteArray
Write the contents of the ByteArray to a file.

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