public class Deck extends CardStack
| Constructor and Description |
|---|
Deck(long seed)
Create a shuffled deck of cards according to the given random number seed.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlayFrom()
One cannot play from a Deck.
|
boolean |
playTo(Card card)
One cannot play to a Deck.
|
addCard, getTopCard, isEmpty, playTo, removeTopCard, size, toArray, toStringpublic Deck(long seed)
seed - random seed for deck shufflepublic boolean canPlayFrom()
canPlayFrom in class CardStack