public class Cascade extends CardStack
| Constructor and Description |
|---|
Cascade() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
playTo(Card card)
Given a card to be played to the top of this card stack, either make the legal play and return true, or ignore the illegal play and return false.
|
addCard, canPlayFrom, getTopCard, isEmpty, playTo, removeTopCard, size, toArray, toStringpublic boolean playTo(Card card)