@ -1,6 +1,7 @@
package solitaer;
import java.util.ArrayList;
import java.util.Collections;
public class CardDeck {
@ -33,4 +34,9 @@ public class CardDeck {
return deck;
}
public void shuffelDeck() {
Collections.shuffle(deck);
@ -48,6 +48,7 @@ public class SolitaerGamePanel extends JPanel {
this.addMouseListener(mouseL);
deck = new CardDeck();
deck.shuffelDeck();
for (int i = 0; i < STARTSTACK_SIZE; i++) {
int y = setLayouty(1);