|
|
|
@ -35,6 +35,14 @@ class ArrayList< Card > {
|
|
|
|
public boolean addAll(Collection<Card> card)
|
|
|
|
public boolean addAll(Collection<Card> card)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum Suit {
|
|
|
|
|
|
|
|
CLUBS,
|
|
|
|
|
|
|
|
SPADES,
|
|
|
|
|
|
|
|
HEARTS,
|
|
|
|
|
|
|
|
DIAMONDS
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Card o-- Suit
|
|
|
|
|
|
|
|
|
|
|
|
class Pile extends ArrayList {
|
|
|
|
class Pile extends ArrayList {
|
|
|
|
public static Pile createDeck(int numberOfCards)
|
|
|
|
public static Pile createDeck(int numberOfCards)
|
|
|
|
public Pile getCardsForPlayer(int number)
|
|
|
|
public Pile getCardsForPlayer(int number)
|
|
|
|
|