瀏覽代碼

added deck to cardGame class

Jonathan Hinds 6 年之前
父節點
當前提交
be902c5fc7
共有 2 個檔案被更改,包括 5 行新增1 行删除
  1. 4
    0
      src/main/java/io/zipcoder/casino/CardGame.java
  2. 1
    1
      src/main/java/io/zipcoder/casino/War.java

+ 4
- 0
src/main/java/io/zipcoder/casino/CardGame.java 查看文件

@@ -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 查看文件

@@ -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