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

A

active - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
folding (or losing) makes a player inactive
addToPot(int, double) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
addToPot(double, int) - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
adjustBankrolls() - Method in class ca.ualberta.cs.poker.free.server.PokerServer
Adjust the bankrolls according to current hands winnings.
AdvancedPokerClient - Class in ca.ualberta.cs.poker.free.client
An extension of PokerClient that contains a reference to a reproduction of what is happening on the server side (state).
AdvancedPokerClient() - Constructor for class ca.ualberta.cs.poker.free.client.AdvancedPokerClient
Creates a new instance of AdvancedPokerClient.
amountWon - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 

B

bankroll - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
The bankroll: decremented before gameStateChanged, incremented before winEvent
bankroll - Variable in class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
The bankroll at the beginning of the hand when (handOver==false): when (handOver==true), it becomes the bankroll at the end of the hand.
bankrollAtStart - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
The bankroll at the start of the current hand
bettingSequence - Variable in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
 
bettingSequence - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
board - Variable in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
Contains all of the cards on the board.
board - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
Full board (may not have been revealed)
broadcastMatchState() - Method in class ca.ualberta.cs.poker.free.server.PokerServer
Sends the match state as it appears to all players.
button - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
The button is the player who gives the small blind and acts first on the pre-flop.

C

ca.ualberta.cs.poker.free.academy25 - package ca.ualberta.cs.poker.free.academy25
This package contains the code which can allow a Poker Academy bot implementing the Meerkat 2.5 interface to connect to the server.
ca.ualberta.cs.poker.free.client - package ca.ualberta.cs.poker.free.client
This package contains the code that is specifically associated with the client.
ca.ualberta.cs.poker.free.dynamics - package ca.ualberta.cs.poker.free.dynamics
This package contains the code that deals with the rules of a game (hand) of poker.
ca.ualberta.cs.poker.free.server - package ca.ualberta.cs.poker.free.server
This package contains the code that is specifically associated with the server.
canRaise(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
You can raise if there are less than 4 bets on this round and the number of active players is 2 (everybody).
Card - Class in ca.ualberta.cs.poker.free.dynamics
 
Card(Card.Rank, Card.Suit) - Constructor for class ca.ualberta.cs.poker.free.dynamics.Card
Creates a new instance of Card
Card(String) - Constructor for class ca.ualberta.cs.poker.free.dynamics.Card
Initializes a card from a rank/suit card string.
Card.Rank - Enum in ca.ualberta.cs.poker.free.dynamics
An enumeration class for Rank.
Card.Suit - Enum in ca.ualberta.cs.poker.free.dynamics
An enumeration class for Suit.
changeCurrentSeat() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
Flipping the currentPlayerSeat.
ClientPokerDynamics - Class in ca.ualberta.cs.poker.free.client
Maintains a version of the server's state on the client side.
ClientPokerDynamics() - Constructor for class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
Creates a new instance of ClientPokerDynamics
close() - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Close the connection.
close() - Method in class ca.ualberta.cs.poker.free.server.PlayerAgent
Close the connection to the client.
connect(InetAddress, int) - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Connects to the server at the given IP address and port number.
convertToHand(Card[]) - Static method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Convert old cards to new cards.
currentGameStateString - Variable in class ca.ualberta.cs.poker.free.client.PokerClient
This is the current game state.
currentPlayerSeat - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
NOTE: currentPlayerSeat MUST be changed manually: 1.

D

dealCards() - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
Sets all cards from the SecureRandom device
dealNewArray(SecureRandom, int) - Static method in class ca.ualberta.cs.poker.free.dynamics.Card
Deals a certain number of cards into an array.
determineWinner(String[], String) - Static method in class ca.ualberta.cs.poker.free.dynamics.HandAnalysis
 
determineWinner(Card[][], Card[]) - Static method in class ca.ualberta.cs.poker.free.dynamics.HandAnalysis
Determines the winner's index.
doNewGame(long, int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
doPostBetOrRaise() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
Called in-between the action event and the state change Does not change the current seat
doPostBigBlind() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
Called in-between the action event and the state change Does not change the current seat
doPostCheckOrCall() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
Called in-between the action event and the state change Does not change the current seat
doPostFold() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
Called in-between the action event and the state change Does not change the current seat
doPostSmallBlind() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
Called in-between the action event and the state change The round bets is incremented during the small blind.
doPreGameOver() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
Call this before gameOverEvent()
doPreStageEvent(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
On a new stage, the non-button player begins on all but the first round.
doPreTieEvent(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
This function is for winning the whole pot
doPreWinEvent(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
This function is for winning the whole pot

E

elapsedSendingTime - Variable in class ca.ualberta.cs.poker.free.server.PlayerAgent
The total (match) elapsed sending time.
endHand() - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
After winnerIndex is set, we can end the hand.
endOfStage() - Method in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
Tests if this is the end of a stage.

F

firstActionOnRound - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
The next action will be the first action on the round.
flop - Variable in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
Contains the flop cards.
forfeit(int, int) - Method in class ca.ualberta.cs.poker.free.server.PokerServer
If a player forfeits, he loses all of his blinds for the remainder of the game.

G

gameID - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
The gameID is the hand number
GameInfoDynamics - Class in ca.ualberta.cs.poker.free.academy25
 
GameInfoDynamics() - Constructor for class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
GameInfoImpl - Class in ca.ualberta.cs.poker.free.academy25
 
GameInfoImpl(GameInfoDynamics) - Constructor for class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
gameOver - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
Game is over right before the gameOverEvent is called
getActionFromResponse(String) - Method in class ca.ualberta.cs.poker.free.server.PokerServer
Gets the last character of a response, which should be 'c', 'r', or 'f'
getAmountCallable() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Gets the amount to call
getAmountInPot() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Gets the amount in pot.
getAmountInPotThisRound() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
This gets the amount in pot for the current player during the current round of betting.
getAmountRaiseable() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Gets the current bet size (getCurrentBetSize()).
getAmountToBet() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
getAmountToCall(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
getAmountToCall() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
getAmountToCall(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The amount to call is the different between the stake and the pot of seat: however, if someone has folded (is inactive), it is zero.
getAmountToCall() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
The amount to call (difference between the stakes and this player's pot).
getAnte() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
There are no antes in the variant we are playing, so this returns zero.
getBankRoll(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns the current bankroll of a player.
getBankRoll() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
The bankroll of this player.
getBankRollAtRisk(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
This function is primarily for no-limit games, and therefore there is no formal specification here and its use is not recommended.
getBankRollAtRisk() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
The bankroll at risk.
getBankRollAtStartOfHand() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
The bankroll at the start of the current hand.
getBankRollInSmallBets() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Returns the bankroll of this player in small bets.
getBetsToCall(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The amount to call, except in terms of the current bet size.
getBigBlindSeat() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The seat that has or will submit the big blind.
getBigBlindSize() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The size of the big blind, equal to the size of the small bet.
getBoard() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns the visible board.
getBucket() - Method in class ca.ualberta.cs.poker.free.client.TablePokerClient
 
getButtonSeat() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Gets the seat with the button.
getCard(String, int) - Method in class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
Get a card from the card sequence.
getCardState(int) - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
getClientID() - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Returns the IP address and port number of the client.
getCurrentBetSize() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
If the current round is the pre-flop or the flop, this is the small bet.
getCurrentPlayerSeat() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns the player who is about to act (during getAction) or who has just acted (during actionEvent or gameStateChanged)
getEligiblePot(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns the total pot size (infinite bankroll)
getGameID() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns a long between 0 and 999
getGameInfo() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Returns the associated GameInfo object
getLastAction() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Returns the last action this player played in this hand, or -1 if no such action exists.
getLastAction() - Method in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
 
getLogDirectory() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
There is no log directory in this implementation.
getMainPotSize() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Same as the total pot size.
getMatchState(int) - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
getMinRaise() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Same as the current bet size.
getName() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Returns "0" or "1"
getNetGain(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Gets the net gain Returns zero if the game is over.
getNetGain() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Gets the net gain for the hand.
getNumActivePlayers() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getNumActivePlayersNotAllIn() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getNumberOfAllInPlayers() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getNumPlayers() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getNumRaises() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getNumSeats() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getNumSidePots() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getNumToAct() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getNumWinners() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getOtherSeat(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
getOtherSeat(int) - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
getPlayer(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns the player info for a player sitting in the seat.
getPlayer(String) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns the player info for a player with a particular name (names are "0" and "1").
getPlayerFromBotFile(String) - Static method in class ca.ualberta.cs.poker.free.academy25.PokerAcademyClient
NOT WORKING YET
getPlayerFromLoadedJarFile(String) - Static method in class ca.ualberta.cs.poker.free.academy25.PokerAcademyClient
NOT WORKING YET
getPlayerName(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns the name for a player in a seat (names are "0" and "1").
getPlayerSeat(String) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getPlayersInPot(double) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
A PlayerInfo is in the list iff they put amountIn or more into the pot themselves.
getRaiseAmount(double) - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Returns the current bet size.
getRake() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
No rake for the competition
getRevealedHand() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
 
getRoundBettingSequence() - Method in class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
Returns the betting sequence since the last cards observed.
getSeat() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
 
getSidePotSize(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
getSmallBlindSeat() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Gets the small blind seat (the button).
getSmallBlindSize() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns the small blind size.
getStage() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns the stage: Holdem.PREFLOP, Holdem.FLOP, Holdem.TURN, or Holdem.RIVER (0-3)
getStakes() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The largest amount any individual put in the pot this hand.
getTotalPotSize() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The total pot size.
getUnacted() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
How many players have not folded, checked, called, bet, or raised this stage?
getWinner() - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
Returns: -1 on a tie, 0 if first seat has a better hand, 1 if second seat has a better hand.

H

HandAnalysis - Class in ca.ualberta.cs.poker.free.dynamics
 
HandAnalysis(Card[]) - Constructor for class ca.ualberta.cs.poker.free.dynamics.HandAnalysis
 
HandAnalysis.HandType - Enum in ca.ualberta.cs.poker.free.dynamics
 
handleAction(char) - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
handleCall() - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
Updates the state when a call is made.
handleFold() - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
Updates the state when a (legal) fold is made.
handleRaise() - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
Updates the state when a (legal) raise is made.
handleStateChange() - Method in class ca.ualberta.cs.poker.free.academy25.PokerAcademyClient
Called whenever the state is changed.
handleStateChange() - Method in class ca.ualberta.cs.poker.free.client.AdvancedPokerClient
Handles the state change.
handleStateChange() - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Override to handle a state change.
handleStateChange() - Method in class ca.ualberta.cs.poker.free.client.RandomPokerClient
Chooses an action uniformly at random using an internal secure random number generator.
handNumber - Variable in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
The hand number, from 0-999.
handNumber - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
handOver - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
The hand is over
hasActed - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
hasActedThisRound() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
 
hasEnoughToRaise() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Always true (infinite bankrolls).
hole - Variable in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
Contains the hole cards, indexed by seat.
hole - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
Cards in the hole

I

incrementBankroll(double) - Method in class ca.ualberta.cs.poker.free.server.PlayerAgent
Increment the bankroll by d.
incrementRound() - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
incrementSeatBankroll(double, int) - Method in class ca.ualberta.cs.poker.free.server.PokerServer
Increment the bankroll of the player in seat seat an amount amount.
index - Variable in enum ca.ualberta.cs.poker.free.dynamics.Card.Rank
 
index - Variable in enum ca.ualberta.cs.poker.free.dynamics.Card.Suit
 
inGame(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Both players are always in the game
inGame() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Players are always in the game.
initializeBets() - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
inPot - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
The pot: incremented before gameStateChanged, set to zero for a new game
inPot - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
inPot[i] is the contribution to the pot of the player in seat i.
isActive(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
All players are active in heads-up
isActive() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
A player is active until they fold or lose a showdown.
isAllIn() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Players are never all in
isAppropriate(String) - Method in class ca.ualberta.cs.poker.free.server.PokerServer
Tests if a response is actually a response to the CURRENT action.
isButton() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Returns true if this player is the button
isCommitted(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Has the player bet more than his own blind in this stage?
isCommitted() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Test for a voluntary commitment by the player.
isComplete(String) - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Test if the message is complete (contains a terminal character)
isComplete(String) - Method in class ca.ualberta.cs.poker.free.server.PlayerAgent
A message is complete if it ends with the message terminator.
isFirstSeatVisible(int) - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
The first player's hole cards are visible to the first player always and to everyone at the showdown.
isFixedLimit() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The tournament is fixed limit
isFlop() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Flop indicates the postflop
isFolded() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
A player has folded if his last action was fold.
isGameOver() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
isNoLimit() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The tournament is fixed limit, not "no limit"
isOurTurn() - Method in class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
 
isPostFlop() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns true if the flop has been dealt but not the turn card (after stageEvent(1), before stageEvent(2))
isPotLimit() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The tournament is fixed limit, not "pot limit"
isPreFlop() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns true if the river card has been dealt (after stageEvent(1), before stageEvent(2))
isReverseBlinds() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The tournament is reverse blinds, where the button gives a small blind.
isRiver() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Returns true if the river card has been dealt (after stageEvent(3))
isSecondSeatVisible(int) - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
isSimulation() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The tournament is not simulation.
isSittingOut() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Players never sit out.
isTurn() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
isZipMode() - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The tournament is not "zip mode".

K

kickerTest(HandAnalysis, HandAnalysis) - Static method in class ca.ualberta.cs.poker.free.dynamics.HandAnalysis
 

L

lastAction - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
lastAction[i] last fold(0), call(1), or raise(2) made by the player in seat i, or -1 otherwise.

M

main(String[]) - Static method in class ca.ualberta.cs.poker.free.client.RandomPokerClient
 
Main - Class in ca.ualberta.cs.poker.free.server
 
Main() - Constructor for class ca.ualberta.cs.poker.free.server.Main
 
main(String[]) - Static method in class ca.ualberta.cs.poker.free.server.Main
 
main(String[]) - Static method in class ca.ualberta.cs.poker.free.server.PokerServer
Run the server listening for connections from the localhost to test the code.
MatchStateMessage - Class in ca.ualberta.cs.poker.free.dynamics
 
MatchStateMessage(String) - Constructor for class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
 
messageTerminator - Static variable in class ca.ualberta.cs.poker.free.server.PlayerAgent
The current message terminator is a carriage return.

N

nameToSeat(String) - Static method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Since names are simply a string with the player index, it is all good.
nextActivePlayer(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The next active player.
nextPlayer(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Return the other seat.
nextSeat(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
Since there are only two seats, the next seat from 1 is 0.
numToAct - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
Two at the beginning of the stage, (before first bet or check) Zero at end of stage (after last call), one elsewhere
numUnacted - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
The number of players that have not folded, checked, called, bet, or raised this round.
numWinners - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
One after one person wins, two after two people win

P

PlayerAgent - Class in ca.ualberta.cs.poker.free.server
 
PlayerAgent(Socket, int) - Constructor for class ca.ualberta.cs.poker.free.server.PlayerAgent
Creates a new instance of PlayerAgent
playerIndex - Variable in exception ca.ualberta.cs.poker.free.server.TimeoutException
The index of the player that times out.
PlayerInfoDynamics - Class in ca.ualberta.cs.poker.free.academy25
 
PlayerInfoDynamics(GameInfoDynamics, GameInfoImpl, int) - Constructor for class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Creates a new instance of PlayerInfoDynamics
players - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
 
playerToSeat(int) - Method in class ca.ualberta.cs.poker.free.server.PokerServer
Which seat is the player in?
playHand() - Method in class ca.ualberta.cs.poker.free.server.PokerServer
Play one hand.
PokerAcademyClient - Class in ca.ualberta.cs.poker.free.academy25
This class allows for a Player from PokerAcademy to be plugged in.
PokerAcademyClient(Player) - Constructor for class ca.ualberta.cs.poker.free.academy25.PokerAcademyClient
Creates a new instance of PokerAcademyClient Pass a pointer to the player you want to use.
PokerClient - Class in ca.ualberta.cs.poker.free.client
Root for all example Java implementations of the client interface.
PokerClient() - Constructor for class ca.ualberta.cs.poker.free.client.PokerClient
Creates a new instance of PokerClient.
PokerDynamics - Class in ca.ualberta.cs.poker.free.dynamics
 
PokerDynamics(SecureRandom) - Constructor for class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
Creates a new instance of PokerServer
PokerServer - Class in ca.ualberta.cs.poker.free.server
 
PokerServer(SecureRandom, InetAddress, InetAddress, int) - Constructor for class ca.ualberta.cs.poker.free.server.PokerServer
Initialize a PokerServer.
previousPlayer(int) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoImpl
The previous player is the other player.

R

RandomPokerClient - Class in ca.ualberta.cs.poker.free.client
Plays actions uniformly at random.
RandomPokerClient() - Constructor for class ca.ualberta.cs.poker.free.client.RandomPokerClient
Creates a new instance of RandomPokerClient
rank - Variable in class ca.ualberta.cs.poker.free.dynamics.Card
 
receiveMessage() - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Receive a message from the server.
receiveMessage() - Method in class ca.ualberta.cs.poker.free.server.PlayerAgent
Receives a message from the client.
representation - Variable in enum ca.ualberta.cs.poker.free.dynamics.Card.Rank
 
representation - Variable in enum ca.ualberta.cs.poker.free.dynamics.Card.Suit
 
river - Variable in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
Contains the river card.
roundBets - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
roundBets - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
roundIndex - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
Round index incremented when the cards for that round are dealt.
run() - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Start the client.
run() - Method in class ca.ualberta.cs.poker.free.server.PokerServer
Run the server.

S

seatTaken - Variable in class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
The seat taken by this player.
seatTaken - Variable in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
The seat taken by the player who receives the message.
seatToAct - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
seatToPlayer(int) - Method in class ca.ualberta.cs.poker.free.server.PokerServer
Which player is in the seat?
sendAction(char) - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Send an action (action should be r, c, or f).
sendCall() - Method in class ca.ualberta.cs.poker.free.client.PokerClient
send a call action.
sendFold() - Method in class ca.ualberta.cs.poker.free.client.PokerClient
send a fold action.
sendMessage(String) - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Send a message to the server.
sendMessage(String) - Method in class ca.ualberta.cs.poker.free.server.PlayerAgent
Send a message to the client.
sendRaise() - Method in class ca.ualberta.cs.poker.free.client.PokerClient
send a raise action.
serious - Variable in exception ca.ualberta.cs.poker.free.server.TimeoutException
A serious timeout exception is caused by a message that fails to send.
setBettingString(String) - Method in class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
Initialize the betting string.
setBoard(String) - Method in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
On a new stage, the non-button player begins on all but the first round.
setCards(String) - Method in class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
Initialize all the cards from the card sequence.
setCards(String) - Method in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
 
setFromMatchStateMessage(String) - Method in class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
Initialize this from a match state message.
setHandNumber(int) - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
setTimeRemaining(long) - Method in class ca.ualberta.cs.poker.free.server.PlayerAgent
Reset the time at the beginning of the hand.
setVerbose(boolean) - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Sets the verbose flag (if true, prints messages sent and received to stdout).
setVerbose(boolean) - Method in class ca.ualberta.cs.poker.free.server.PokerServer
If setVerbose(true), messages sent/received are printed to standard output.
showVerbose(String) - Method in class ca.ualberta.cs.poker.free.client.PokerClient
Print a message to stdout if verbose==true.
smallBet - Static variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
socket - Variable in class ca.ualberta.cs.poker.free.server.PokerServer
The socket clients connect to.
stage - Variable in class ca.ualberta.cs.poker.free.academy25.GameInfoDynamics
 
startHand() - Method in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 
state - Variable in class ca.ualberta.cs.poker.free.client.AdvancedPokerClient
A reproduction of what is happening on the server side.
strongerThan(HandAnalysis.HandType) - Method in enum ca.ualberta.cs.poker.free.dynamics.HandAnalysis.HandType
 
suit - Variable in class ca.ualberta.cs.poker.free.dynamics.Card
 

T

TablePokerClient - Class in ca.ualberta.cs.poker.free.client
Stores a map from abstract states (betting histories + abstract cards) to probability triples (fold,call,raise).
TablePokerClient() - Constructor for class ca.ualberta.cs.poker.free.client.TablePokerClient
Creates a new instance of TablePokerClient
takeAction() - Method in class ca.ualberta.cs.poker.free.client.AdvancedPokerClient
Overload to take actions.
takeAction() - Method in class ca.ualberta.cs.poker.free.client.TablePokerClient
Take an action according to the table.
testContainsFlush() - Method in class ca.ualberta.cs.poker.free.dynamics.HandAnalysis
 
testContainsStraight() - Method in class ca.ualberta.cs.poker.free.dynamics.HandAnalysis
 
testContainsStraightFlush() - Method in class ca.ualberta.cs.poker.free.dynamics.HandAnalysis
 
testFlushRanks() - Method in class ca.ualberta.cs.poker.free.dynamics.HandAnalysis
 
testKickers() - Method in class ca.ualberta.cs.poker.free.dynamics.HandAnalysis
 
testParadigm() - Static method in class ca.ualberta.cs.poker.free.server.Main
 
testServer() - Static method in class ca.ualberta.cs.poker.free.server.Main
 
TimeoutException - Exception in ca.ualberta.cs.poker.free.server
This exception is a little more general than its name implies: any socket or i/o exception during transfer results in a timeout exception.
TimeoutException(int, boolean) - Constructor for exception ca.ualberta.cs.poker.free.server.TimeoutException
Creates a new instance of TimeoutException
toCardArray(String) - Static method in class ca.ualberta.cs.poker.free.dynamics.Card
Converts a string of cards to a card array
toRank(char) - Static method in enum ca.ualberta.cs.poker.free.dynamics.Card.Rank
toRank is implemented in a slow fashion: could be optimized.
toString() - Method in class ca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
Returns the name, "0" or "1"
toString() - Method in enum ca.ualberta.cs.poker.free.dynamics.Card.Rank
A one character string representation.
toString() - Method in enum ca.ualberta.cs.poker.free.dynamics.Card.Suit
 
toString() - Method in class ca.ualberta.cs.poker.free.dynamics.Card
Returns a string with the rank and suit.
toSuit(char) - Static method in enum ca.ualberta.cs.poker.free.dynamics.Card.Suit
 
turn - Variable in class ca.ualberta.cs.poker.free.dynamics.MatchStateMessage
Contains the turn card.

U

updateBankroll() - Method in class ca.ualberta.cs.poker.free.client.ClientPokerDynamics
Update the bankroll: note that this is ONLY changed at the end of a hand.

V

valueOf(String) - Static method in enum ca.ualberta.cs.poker.free.dynamics.Card.Rank
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ca.ualberta.cs.poker.free.dynamics.Card.Suit
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ca.ualberta.cs.poker.free.dynamics.HandAnalysis.HandType
Returns the enum constant of this type with the specified name.
values() - Static method in enum ca.ualberta.cs.poker.free.dynamics.Card.Rank
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum ca.ualberta.cs.poker.free.dynamics.Card.Suit
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum ca.ualberta.cs.poker.free.dynamics.HandAnalysis.HandType
Returns an array containing the constants of this enum type, in the order they're declared.
verboseMessage(String) - Method in class ca.ualberta.cs.poker.free.server.PokerServer
If verbose==true, prints a message to standard output.

W

winnerIndex - Variable in class ca.ualberta.cs.poker.free.dynamics.PokerDynamics
 

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