mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
added a new arraylist to constuktor
This commit is contained in:
parent
8d31dc3a84
commit
5424af57c3
@ -10,6 +10,9 @@ import java.util.Random;
|
|||||||
public abstract class Deck<T> implements IDeck<T> {
|
public abstract class Deck<T> implements IDeck<T> {
|
||||||
private final List<T> cardList;
|
private final List<T> cardList;
|
||||||
|
|
||||||
|
public Deck (){
|
||||||
|
this.cardList=new ArrayList<>();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Initializes the deck with cards
|
* Initializes the deck with cards
|
||||||
* @param cardList list of cards
|
* @param cardList list of cards
|
||||||
|
Loading…
x
Reference in New Issue
Block a user