com.amoebacode.blackjack.core
Interface IDeck
- All Superinterfaces:
- ICardCollection, IGameObject
- All Known Implementing Classes:
- Deck
- public interface IDeck
- extends ICardCollection
IDeck defines the standard API for a deck of cards.
- Version:
- 0.9
- Author:
- Jason Gurney
|
Method Summary |
double |
getNumberOfDecks()
Returns the current number of decks remaining, rounded to the nearest
half-deck. |
boolean |
shouldShuffle()
Indicates whether this deck should be shuffled before beginning the next
round. |
getNumberOfDecks
public double getNumberOfDecks()
- Returns the current number of decks remaining, rounded to the nearest
half-deck.
- Returns:
- the number of decks remaining
shouldShuffle
public boolean shouldShuffle()
- Indicates whether this deck should be shuffled before beginning the next
round.
- Returns:
- true if the deck should be shuffled
Copyright © 2002 amoebacode.com.