Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void resetDeck() {
- String c = "";
- String d = "";
- int e = 0;
- for(int a = 0; a < 8; a++) {
- if(a == 0) {
- c = "A";
- }
- else if(a == 1) {
- c = "7";
- }
- else if(a == 2) {
- c = "8";
- }
- else if(a == 3) {
- c = "9";
- }
- else if(a == 4) {
- c = "10";
- }
- else if(a == 5) {
- c = "J";
- }
- else if(a == 6) {
- c = "D";
- }
- else if(a == 7) {
- c = "K";
- }
- for(int b = 0; b < 4; b++) {
- if(b == 0) {
- d = "Pik";
- }
- else if(b == 1) {
- d = "Kreuz";
- }
- else if(b == 2) {
- d = "Karo";
- }
- else {
- d = "Herz";
- }
- Karte karte = new Karte(d, c);
- kartendeck[e] = karte;
- e++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement