|
|
@ -8,19 +8,19 @@ public class CardDeck { |
|
|
|
|
|
|
|
public CardDeck() { |
|
|
|
for (int j = 0; j < 4; j++) { |
|
|
|
for (int i = 0; i < 13; i++) { |
|
|
|
for (int i = 1; i <= 13; i++) { |
|
|
|
switch (j) { |
|
|
|
case 0: |
|
|
|
deck.add(new Card(1, Symbol.Herz, false)); |
|
|
|
deck.add(new Card(i, Symbol.Herz, false)); |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
deck.add(new Card(1, Symbol.Karo, false)); |
|
|
|
deck.add(new Card(i, Symbol.Karo, false)); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
deck.add(new Card(1, Symbol.Kreuz, false)); |
|
|
|
deck.add(new Card(i, Symbol.Kreuz, false)); |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
deck.add(new Card(1, Symbol.Pik, false)); |
|
|
|
deck.add(new Card(i, Symbol.Pik, false)); |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|