Skip navigation links
A C G I M N P R S T W 

A

allCards - Static variable in class Card
an array of all unique Card objects

C

Card - Class in <Unnamed>
A class for representing standard (French) playing cards.
Card(int, int) - Constructor for class Card
Constructor to create a card object with the corresponding zero-based indices to rankNames and suitNames, respectively.

G

getDiscard() - Method in interface GinRummyPlayer
Get the player's discarded card.
getDiscard() - Method in class SimpleGinRummyPlayer
 
getFinalMelds() - Method in interface GinRummyPlayer
At the end of each turn, this method is called and the player that cannot (or will not) end the round will return a null value.
getFinalMelds() - Method in class SimpleGinRummyPlayer
 
getId() - Method in class Card
Return the Card id number.
getRank() - Method in class Card
Get rank of card (zero-based index to rankNames).
getShuffle(int) - Static method in class Card
Return a Stack deck of Cards corresponding to the give Microsoft FreeCell seed number
getSuit() - Method in class Card
Get suit of card (zero-based index to suitNames).
GinRummyGame - Class in <Unnamed>
 
GinRummyGame(GinRummyPlayer, GinRummyPlayer) - Constructor for class GinRummyGame
Create a GinRummyGame with two given players
GinRummyPlayer - Interface in <Unnamed>
 

I

idStrMap - Static variable in class Card
map from Card id numbers to String representations
isRed() - Method in class Card
Return whether or not the card is Red.
isSuitRed - Static variable in class Card
parallel array to suitNames indicating whether or not the corresponding suit is red

M

main(String[]) - Static method in class Card
A test to show Microsoft shuffle 617.
main(String[]) - Static method in class GinRummyGame
Test and demonstrate the use of the GinRummyGame class.

N

NUM_CARDS - Static variable in class Card
total number of cards
NUM_RANKS - Static variable in class Card
number of card ranks
NUM_SUITS - Static variable in class Card
number of card suits

P

play() - Method in class GinRummyGame
Play a game of Gin Rummy and return the winning player number 0 or 1.

R

rank - Variable in class Card
rank index (zero-based index to rankNames)
rankNames - Static variable in class Card
array of abbreviated card rank names in ascending order of rank and indexed by suit index
reportDiscard(int, Card) - Method in interface GinRummyPlayer
Report that the given player has discarded a given card.
reportDiscard(int, Card) - Method in class SimpleGinRummyPlayer
 
reportDraw(int, Card) - Method in interface GinRummyPlayer
Report that the given player has drawn a given card and, if known, what the card is.
reportDraw(int, Card) - Method in class SimpleGinRummyPlayer
 
reportFinalMelds(int, ArrayList<ArrayList<Card>>) - Method in interface GinRummyPlayer
When an player has ended play and formed melds, the melds are reported to both players.
reportFinalMelds(int, ArrayList<ArrayList<Card>>) - Method in class SimpleGinRummyPlayer
 
reportScores(int[]) - Method in interface GinRummyPlayer
Report current player scores, indexed by 0-based player number.
reportScores(int[]) - Method in class SimpleGinRummyPlayer
 

S

setPlayVerbose(boolean) - Static method in class GinRummyGame
Set whether or not there is to be printed output during gameplay.
SimpleGinRummyPlayer - Class in <Unnamed>
Implements a random dummy Gin Rummy player that has the following trivial, poor play policy: Ignore opponent actions and cards no longer in play.
SimpleGinRummyPlayer() - Constructor for class SimpleGinRummyPlayer
 
startGame(int, int, Card[]) - Method in interface GinRummyPlayer
Inform player of 0-based player number (0/1), starting player number (0/1), and dealt cards
startGame(int, int, Card[]) - Method in class SimpleGinRummyPlayer
 
strCardMap - Static variable in class Card
map from String representations to Card objects
strIdMap - Static variable in class Card
map from String representations to Card id numbers
suit - Variable in class Card
suit index (zero-based index to suitNames)
suitNames - Static variable in class Card
array of abbreviated card suit names indexed by suit index

T

toString() - Method in class Card
 

W

willDrawFaceUpCard(Card) - Method in interface GinRummyPlayer
Return whether or not player will draw the given face-up card on the draw pile.
willDrawFaceUpCard(Card) - Method in class SimpleGinRummyPlayer
 
A C G I M N P R S T W 
Skip navigation links