A B C D E F G H I J K M N Q R S T V

A

ACE - Static variable in class Card
 
addCard(Card) - Method in class BlackJackHand
 

B

blackjack() - Method in class BlackJackHand
pre: size() = 2 post: returns true if this hand is a Blackjack
BlackJackHand - class BlackJackHand.
 
BlackJackHand() - Constructor for class BlackJackHand
pre: none
post: creates an empty Hand
BlackJackHand(Card) - Constructor for class BlackJackHand
pre: c != null post: creates a Hand with one Card
busted() - Method in class BlackJackHand
pre: none
post: returns true if this Hand's value is > 21

C

Card - class Card.
This class represents a playing card.
Card() - Constructor for class Card
Default constructor pre: none
post: getValue() = TWO getSuit() = CLUBS
Card(int, int) - Constructor for class Card
pre: TWO <= value <= ACE,
CLUBS <= suit <= SPADES post: getValue() = value getSuit() = suit
CLUBS - Static variable in class Card
 
compareTo(Object) - Method in class Card
 
ConsoleInput - class ConsoleInput.
used for console (terminal) input which is exceedingly ugly unless encapsulated in a class.
ConsoleInput() - Constructor for class ConsoleInput
 

D

deal() - Method in class StandardDeck
A mutator that returns a value.
deal() - Method in class Shoe
pre: !isEmpty()
post: return the top card of the Shoe.
DIAMONDS - Static variable in class Card
 

E

EIGHT - Static variable in class Card
 
equals(Object) - Method in class Card
pre: otherCard != null post: true iff two cards have same suit and value

F

FIVE - Static variable in class Card
 
FOUR - Static variable in class Card
 

G

getSuit() - Method in class Card
pre: none
post: returns cards Suit
getValue() - Method in class Card
*pre: none
post: returns cards Value
getValue() - Method in class BlackJackHand
 

H

HEARTS - Static variable in class Card
 

I

isEmpty() - Method in class StandardDeck
pre: none
post: returns true iff numCardsInDeck = 0

J

JACK - Static variable in class Card
 

K

KING - Static variable in class Card
 

M

main(String[]) - Static method in class Tester
 
MAX_CARDS - Static variable in class StandardDeck
 
MAX_GOOD_VALUE - Static variable in class BlackJackHand
 
mustShuffle() - Method in class Shoe
pre: none
post: return true if the Shoe needs to be shuffled

N

NINE - Static variable in class Card
 
numCards() - Method in class Shoe
pre: none
post: return the number of cards left in the shoe
numCardsInDeck() - Method in class StandardDeck
pre: none;
post: returns number of cards left in logical deck
numCardsToShuffle() - Method in class Shoe
pre: none
post: return the number of cards until the Shoe must be shuffled

Q

QUEEN - Static variable in class Card
 

R

readDouble() - Static method in class ConsoleInput
reads a line from standard input, returns first double on line catches NumberFormatException, returns 0 if caught
readInt() - Static method in class ConsoleInput
reads a line from standard input, returns first int on line catches NumberFormatException, returns 0 if caught
readString() - Static method in class ConsoleInput
reads a line from standard input, returns string
reset() - Method in class StandardDeck
pre: none post: deck reset to 52 cards and shuffled

S

SEVEN - Static variable in class Card
 
Shoe - class Shoe.
Models a Blackjack Shoe
Shoe() - Constructor for class Shoe
pre: none post: create a SHOE with 6 decks, shuffle it, and pick the reset point
Shoe(int) - Constructor for class Shoe
pre: 0 < numDecks post: create a SHOE with numDecks decks, shuffle it, and pick the reset point
shuffle() - Method in class StandardDeck
pre: none
post: deck shuffled.
SIX - Static variable in class Card
 
size() - Method in class BlackJackHand
pre: none
post: return number of cards in this Hand
SPADES - Static variable in class Card
 
split() - Method in class BlackJackHand
pre: splittable() post: reduce this Hand to one card, and create a new Hand object with the other card
splittable() - Method in class BlackJackHand
pre: size() = 2 post: returns true if this Hand can be legally spilt, that is the hand has size two and both cards are of equal value
StandardDeck - class StandardDeck.
models a standard 52 card deck.
StandardDeck() - Constructor for class StandardDeck
pre: none
post: deck created, with 52 cards,

T

TEN - Static variable in class Card
 
Tester - class Tester.
 
Tester() - Constructor for class Tester
 
THREE - Static variable in class Card
 
toString() - Method in class Card
pre: none
post: returns String with cards value and suit
toString() - Method in class StandardDeck
pre: none
post: return a String version of the Cards left in the deck
toString() - Method in class BlackJackHand
pre: none post: return a string version of the cards in this hand
TWO - Static variable in class Card
 

V

validSuit(int) - Method in class Card
 
validValue(int) - Method in class Card
pre: none
post: returns true iff value between TWO and ACE inclusive

A B C D E F G H I J K M N Q R S T V

Generated by BlueJ