Index

A B C D E G I M N P R S T 
All Classes All Packages

A

actionPerformed(ActionEvent) - Method in class CardGameGUI
Respond to a button click (on either the "Replace" button or the "Restart" button).
anotherPlayIsPossible() - Method in class ElevensBoard
Determine if there are any legal plays left on the board.

B

Board - Class in <Unnamed>
This class represents a Board that can be used in a collection of solitaire games similar to Elevens.
Board(int, String[], String[], int[]) - Constructor for class Board
Creates a new Board instance.

C

Card - Class in <Unnamed>
Card.java Card represents a playing card.
Card(String, String, int) - Constructor for class Card
Creates a new Card instance.
cardAt(int) - Method in class Board
Accesses a card on the board.
CardGameGUI - Class in <Unnamed>
This class provides a GUI for solitaire games related to Elevens.
CardGameGUI(ElevensBoard) - Constructor for class CardGameGUI
Initialize the GUI.
cardIndexes() - Method in class Board
Gets the indexes of the actual (non-null) cards on the board.

D

deal() - Method in class Deck
Deals a card from this deck.
deal(int) - Method in class Board
Deal a card to the kth position in this board.
Deck - Class in <Unnamed>
The Deck class represents a shuffled deck of cards.
Deck(String[], String[], int[]) - Constructor for class Deck
Creates a new Deck instance.
It pairs each element of ranks with each element of suits, and produces one of the corresponding card.
deckSize() - Method in class Board
Accesses the deck's size.
displayGame() - Method in class CardGameGUI
Run the game.

E

ElevensBoard - Class in <Unnamed>
The ElevensBoard class represents the board in a game of Elevens.
ElevensBoard() - Constructor for class ElevensBoard
Creates a new ElevensBoard instance.

G

gameIsWon() - Method in class Board
Determine whether or not the game has been won, i.e.

I

isEmpty() - Method in class Board
Determines if the board is empty (has no cards).
isEmpty() - Method in class Deck
Determines if this deck is empty (no undealt cards).
isLegal(List<Integer>) - Method in class ElevensBoard
Determines if the selected cards form a valid group for removal.

M

matches(Card) - Method in class Card
Compare this card with the argument.

N

newGame() - Method in class Board
Start a new game by shuffling the deck and dealing some cards to this board.

P

pointValue() - Method in class Card
Accesses this Card's point value.

R

rank() - Method in class Card
Accesses this Card's rank.
repaint() - Method in class CardGameGUI
Draw the display (cards and messages).
replaceSelectedCards(List<Integer>) - Method in class Board
Replaces selected cards on the board by dealing new cards.

S

shuffle() - Method in class Deck
Randomly permute the given collection of cards and reset the size to represent the entire deck.
size() - Method in class Board
Accesses the size of the board.
size() - Method in class Deck
Accesses the number of undealt cards in this deck.
suit() - Method in class Card
Accesses this Card's suit.

T

toString() - Method in class Board
Generates and returns a string representation of this board.
toString() - Method in class Card
Converts the rank, suit, and point value into a string in the format "[Rank] of [Suit] (point value = [PointValue])".
toString() - Method in class Deck
Generates and returns a string representation of this deck.
A B C D E G I M N P R S T 
All Classes All Packages