Endret getCards i Deck

This commit is contained in:
GabrielMagnus 2020-03-03 15:35:43 +01:00
parent 42726b5e78
commit e07e10b2bc

View File

@ -108,7 +108,13 @@ public abstract class Deck<T> implements IDeck<T> {
*/
@Override
public List<T> getCards() {
return cardDeck;
ArrayList<T> returnDeck = new ArrayList<>();
for (T card:cardDeck){
returnDeck.add(card);
}
return returnDeck;
}