|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--Shoe
Models a Blackjack Shoe
| Constructor Summary | |
Shoe()
pre: none post: create a SHOE with 6 decks, shuffle it, and pick the reset point |
|
Shoe(int numDecks)
pre: 0 < numDecks post: create a SHOE with numDecks decks, shuffle it, and pick the reset point |
|
| Method Summary | |
Card |
deal()
pre: !isEmpty() post: return the top card of the Shoe. |
boolean |
mustShuffle()
pre: none post: return true if the Shoe needs to be shuffled |
int |
numCards()
pre: none post: return the number of cards left in the shoe |
int |
numCardsToShuffle()
pre: none post: return the number of cards until the Shoe must be shuffled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Shoe()
public Shoe(int numDecks)
| Method Detail |
public Card deal()
public boolean mustShuffle()
public int numCards()
public int numCardsToShuffle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||