Skip navigation links
C E G I M N P R S T U V 

C

Card - Class in <Unnamed>
Card - Playing card class representing all 52 cards of a French deck.

E

equals(Card) - Method in class Card
Return whether or not this card equals another Card object.

G

GAME_MILLIS - Static variable in class PokerSquares
 
getAllCards() - Static method in class Card
Get an array containing all cards.
getAmericanPointSystem() - Static method in class PokerSquaresPointSystem
Return the American point system.
getAmeritishPointSystem() - Static method in class PokerSquaresPointSystem
Return an "Ameritish" point system randomly generated between the normalized point ranges established by the American and British systems.
getBritishPointSystem() - Static method in class PokerSquaresPointSystem
Return the British point system.
getCard(String) - Static method in class Card
Given a Card String representation, return the associated Card.
getCard(int) - Static method in class Card
Get the Card object associated with the given card identification integer.
getCardId() - Method in class Card
Return unique integer card identification number according to "suit-major" ordering where cards are ordered A, 2, ..., K within suits that are ordered alphabetically.
getHandScore(Card[]) - Method in class PokerSquaresPointSystem
Get the score of the given Card hand (which may contain null values).
getHandScore(PokerHand) - Method in class PokerSquaresPointSystem
Get the score associated with the given Poker hand classification.
getHandScore(int) - Method in class PokerSquaresPointSystem
Get the score associated with the given Poker hand classification identification number.
getHandScores(Card[][]) - Method in class PokerSquaresPointSystem
Get an int array with the individual hand scores of rows 0 through 4 followed by columns 0 through 4.
getHypercornerPointSystem() - Static method in class PokerSquaresPointSystem
Return a random hypercorner point system where hand scores are either -1 or 1 with equal probability.
getName() - Method in class GreedyMCPlayer
 
getName() - Method in interface PokerSquaresPlayer
getName - gets the uniquely identifying name of the Poker Squares player.
getName() - Method in class RandomPlayer
 
getPlay(Card, long) - Method in class GreedyMCPlayer
 
getPlay(Card, long) - Method in interface PokerSquaresPlayer
getPlay - gets the current play position for a given card within the allotted number of milliseconds.
getPlay(Card, long) - Method in class RandomPlayer
 
getPokerHand(Card[]) - Static method in enum PokerHand
Given a Card array (possibly with null values) classifies the current Poker hand and returns the classification.
getPokerHandId(Card[]) - Static method in enum PokerHand
Given a Card array (possibly with null values) classifies the current Poker hand and returns the classification identification number.
getRandomPointSystem() - Static method in class PokerSquaresPointSystem
Return a random point system with scores uniformly distributed across the range of all allowable values.
getRank() - Method in class Card
Get Card rank.
getRankNames() - Static method in class Card
Return an array of Strings with the single-character rank names.
getScore(Card[][]) - Method in class PokerSquaresPointSystem
Get the score of the given Card grid.
getScoreTable() - Method in class PokerSquaresPointSystem
Return an array of scores indexed by Poker hand classification identification numbers.
getSingleHandPointSystem(int) - Static method in class PokerSquaresPointSystem
Return a point system where only the one Poker hand (given by Poker hand classification identification number) scores 1 point.
getSingleHandPointSystem() - Static method in class PokerSquaresPointSystem
Return a point system where only one randomly selected Poker hand scores 1 point.
getSuit() - Method in class Card
Get Card suit.
getSuitNames() - Static method in class Card
Return an array of Strings with the single-character suit names.
GreedyMCPlayer - Class in <Unnamed>
GreedyMCPlayer - a simple, greedy Monte Carlo implementation of the player interface for PokerSquares.
GreedyMCPlayer() - Constructor for class GreedyMCPlayer
Create a Greedy Monte Carlo player that simulates greedy play to depth 2.
GreedyMCPlayer(int) - Constructor for class GreedyMCPlayer
Create a Greedy Monte Carlo player that simulates greedy play to a given depth limit.

I

id - Variable in enum PokerHand
 
init() - Method in class GreedyMCPlayer
 
init() - Method in interface PokerSquaresPlayer
init - initializes the player before each game
init() - Method in class RandomPlayer
 
isAce() - Method in class Card
Return whether or not the card is an ace.

M

main(String[]) - Static method in class Card
Print all card objects.
main(String[]) - Static method in class GreedyMCPlayer
Demonstrate GreedyMCPlay with Ameritish point system.
main(String[]) - Static method in class PokerSquares
Demonstrate single/batch game play testing and tournament evaluation of PokerSquaresPlayers.
main(String[]) - Static method in class PokerSquaresPointSystem
Demonstrate the different point systems that may be generated.
main(String[]) - Static method in class RandomPlayer
Demonstrate RandomPlayer play with Ameritish point system.
makePlay(Card, int, int) - Method in class GreedyMCPlayer
 

N

name - Variable in enum PokerHand
 
NUM_CARDS - Static variable in class Card
the number of cards in the 52-card French deck
NUM_HANDS - Static variable in enum PokerHand
 
NUM_RANKS - Static variable in class Card
the number of ranks in the 52-card French deck
NUM_SUITS - Static variable in class Card
the number of suits in the 52-card French deck

P

play() - Method in class PokerSquares
Play a game of Poker Squares and return the final game score.
play(Scanner) - Method in class PokerSquares
Given two-character card inputs from the given Scanner, play a game of Poker Squares and return the final game score.
playSequence(int, long, boolean) - Method in class PokerSquares
Play a sequence of games, collecting and reporting statistics.
playTournament(ArrayList<PokerSquaresPlayer>, ArrayList<PokerSquaresPointSystem>, int, long) - Static method in class PokerSquares
Hold a Poker Squares tournament between the given players and point systems, the number of games played by each player with each point system, and the start seed determining the sequence of deals all will encounter, returning an array of doubles corresponding to the tournament score of each player.
POINT_SYSTEM_MILLIS - Static variable in class PokerSquares
 
PokerHand - Enum in <Unnamed>
PokerHand - An enumeration of Poker hand classes along with associated identification numbers and Strings.
PokerSquares - Class in <Unnamed>
 
PokerSquares(PokerSquaresPlayer, PokerSquaresPointSystem) - Constructor for class PokerSquares
Create a PokerSquares game with a given player and point system.
PokerSquaresPlayer - Interface in <Unnamed>
PokerSquaresPlayer - a simple player interface for PokerSquares.
PokerSquaresPointSystem - Class in <Unnamed>
 
PokerSquaresPointSystem(int[]) - Constructor for class PokerSquaresPointSystem
Create a point system given an array of hand scores.
printGrid(Card[][]) - Method in class PokerSquaresPointSystem
Print the given game grid and score.

R

RandomPlayer - Class in <Unnamed>
RandomPlayer - a simple example implementation of the player interface for PokerSquares that makes random placements.
RandomPlayer() - Constructor for class RandomPlayer
 

S

setPointSystem(PokerSquaresPointSystem, long) - Method in class GreedyMCPlayer
 
setPointSystem(PokerSquaresPointSystem, long) - Method in interface PokerSquaresPlayer
setScoreSystem - provides the player with the point system that will be used in subsequent games until a new point system is specified by the same method.
setPointSystem(PokerSquaresPointSystem, long) - Method in class RandomPlayer
 
setSeed(long) - Static method in class PokerSquaresPointSystem
Set the seed of the game pseudorandom number generator.
SIZE - Static variable in class PokerSquares
 

T

toString() - Method in class Card
 
toString() - Method in enum PokerHand
 
toString() - Method in class PokerSquaresPointSystem
 

U

undoPlay() - Method in class GreedyMCPlayer
 

V

valueOf(String) - Static method in enum PokerHand
Returns the enum constant of this type with the specified name.
values() - Static method in enum PokerHand
Returns an array containing the constants of this enum type, in the order they are declared.
C E G I M N P R S T U V 
Skip navigation links