Browse Source

added deck to cardGame class

Jonathan Hinds 6 years ago
parent
commit
44b637de9d

+ 3
- 0
src/main/java/io/zipcoder/casino/CardGame.java View File

@@ -1,5 +1,7 @@
1 1
 package io.zipcoder.casino;
2 2
 
3
+import java.lang.reflect.Array;
4
+import java.util.ArrayList;
3 5
 import java.util.HashMap;
4 6
 
5 7
 public abstract class CardGame {
@@ -9,6 +11,7 @@ public abstract class CardGame {
9 11
     private int handSize;
10 12
     private Player playersTurn;
11 13
     private Player[] players;
14
+    private ArrayList<Card> deck = new ArrayList<>();
12 15
 
13 16
 
14 17
     CardGame(int minBet, int maxBet){

+ 1
- 2
src/main/java/io/zipcoder/casino/DicePlayer.java View File

@@ -8,7 +8,6 @@ public class DicePlayer {
8 8
     ScoreSheet scoreSheet = new ScoreSheet();
9 9
 
10 10
     public DicePlayer(Player player){
11
-        this.player = player
11
+        this.player = player;
12 12
     }
13
-
14 13
 }

+ 2
- 0
src/main/java/io/zipcoder/casino/War.java View File

@@ -13,6 +13,8 @@ public class War extends CardGame implements Gamble, Game {
13 13
 
14 14
     public void Deal() {
15 15
 
16
+
17
+
16 18
     }
17 19
 
18 20
     /**