Ver código fonte

added deck to cardGame class

Jonathan Hinds 6 anos atrás
pai
commit
be902c5fc7

+ 4
- 0
src/main/java/io/zipcoder/casino/CardGame.java Ver arquivo

@@ -35,4 +35,8 @@ public abstract class CardGame {
35 35
     public void faceUp(Card card){
36 36
         card.setVisibility(true);
37 37
     }
38
+
39
+    public ArrayList<Card> getDeck() {
40
+        return deck;
41
+    }
38 42
 }

+ 1
- 1
src/main/java/io/zipcoder/casino/War.java Ver arquivo

@@ -13,7 +13,7 @@ public class War extends CardGame implements Gamble, Game {
13 13
 
14 14
     public void Deal() {
15 15
 
16
-
16
+        //for every card in super.geDeck();
17 17
 
18 18
     }
19 19