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

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

8
     ScoreSheet scoreSheet = new ScoreSheet();
8
     ScoreSheet scoreSheet = new ScoreSheet();
9
 
9
 
10
     public DicePlayer(Player player){
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
 
13
 
14
     public void Deal() {
14
     public void Deal() {
15
 
15
 
16
+
17
+
16
     }
18
     }
17
 
19
 
18
     /**
20
     /**