|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.amoebacode.blackjack.core.DeckFactory
DeckFactory provides possible card values and shuffles new decks.
| Field Summary | |
private static int[] |
SCORES
The set of card scores |
private static char[] |
SUITS
The set of card suits |
private static char[] |
VALUES
The set of card values |
| Constructor Summary | |
private |
DeckFactory()
Default private constructor - this class should not be instantiated. |
| Method Summary | |
static java.lang.String[] |
getCardValues()
Returns an array of all possible card value-suit combinations. |
private static void |
shuffleDealerAcesDeck(IDeck deck,
int numberOfDecks)
Fills the specified deck with a collection of dealer ace hands. |
private static void |
shuffleDealerBlackjackDeck(IDeck deck,
int numberOfDecks)
Fills the specified deck with a collection of dealer blackjack hands. |
protected static void |
shuffleDeck(IDeck deck,
int numberOfDecks)
Fills the specified deck with a newly shuffled collection of cards. |
private static void |
shufflePlayerBlackjackDeck(IDeck deck,
int numberOfDecks)
Fills the specified deck with a collection of player blackjack hands. |
private static void |
shuffleSevensDeck(IDeck deck,
int numberOfDecks)
Fills the specified deck with a collection of sevens. |
private static void |
shuffleStandardDeck(IDeck deck,
int numberOfDecks)
Fills the specified deck with a newly shuffled standard collection of cards. |
private static void |
shuffleThreesDeck(IDeck deck,
int numberOfDecks)
Fills the specified deck with a collection of threes. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final char[] VALUES
private static final int[] SCORES
private static final char[] SUITS
| Constructor Detail |
private DeckFactory()
| Method Detail |
protected static void shuffleDeck(IDeck deck,
int numberOfDecks)
deck - the IDeck to shufflenumberOfDecks - the number of decks to include
private static void shuffleStandardDeck(IDeck deck,
int numberOfDecks)
deck - the IDeck to shufflenumberOfDecks - the number of decks to include
private static void shuffleSevensDeck(IDeck deck,
int numberOfDecks)
deck - the IDeck to shufflenumberOfDecks - the number of decks to include
private static void shuffleThreesDeck(IDeck deck,
int numberOfDecks)
deck - the IDeck to shufflenumberOfDecks - the number of decks to include
private static void shuffleDealerBlackjackDeck(IDeck deck,
int numberOfDecks)
deck - the IDeck to shufflenumberOfDecks - the number of decks to include
private static void shufflePlayerBlackjackDeck(IDeck deck,
int numberOfDecks)
deck - the IDeck to shufflenumberOfDecks - the number of decks to include
private static void shuffleDealerAcesDeck(IDeck deck,
int numberOfDecks)
deck - the IDeck to shufflenumberOfDecks - the number of decks to includepublic static java.lang.String[] getCardValues()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||