Jonathan Hinds 6 gadus atpakaļ
vecāks
revīzija
9a4c603e75

+ 3
- 1
src/main/java/io/zipcoder/casino/CardGame.java Parādīt failu

@@ -9,14 +9,16 @@ public abstract class CardGame {
9 9
     private int minBet;
10 10
     private int maxBet;
11 11
     private int handSize;
12
+    private int ante;
12 13
     private Player playersTurn;
13 14
     private ArrayList<CardPlayer> players;
14 15
     private ArrayList<Card> deck = new ArrayList<>();
15 16
 
16 17
 
17
-    CardGame(int minBet, int maxBet){
18
+    CardGame(int minBet, int maxBet, int ante){
18 19
         this.minBet = minBet;
19 20
         this.maxBet = maxBet;
21
+        this.ante = ante;
20 22
     }
21 23
 
22 24
     //use hand size to determine dealing

+ 0
- 2
src/main/java/io/zipcoder/casino/Dice.java Parādīt failu

@@ -6,9 +6,7 @@ public class Dice {
6 6
     private int value;
7 7
 
8 8
     public void roll(){
9
-
10 9
         value = (int) (Math.random()*6+1);
11
-
12 10
     }
13 11
 
14 12
     public int getValue()

+ 3
- 2
src/main/java/io/zipcoder/casino/War.java Parādīt failu

@@ -31,15 +31,16 @@ public class War extends CardGame implements Gamble, Game {
31 31
      * Below 3 Implemented from Gamble
32 32
      */
33 33
     public void Bet(int betAmount) {
34
-
34
+        //add money to the pot
35 35
     }
36 36
 
37 37
     public int Payout(int payoutAmount) {
38
+
38 39
         return 0;
39 40
     }
40 41
 
41 42
     public void Ante(int anteAmount) {
42
-
43
+        //
43 44
     }
44 45
 
45 46
     /**

+ 0
- 1
src/test/java/io/zipcoder/casino/DeckTest.java Parādīt failu

@@ -26,7 +26,6 @@ public class DeckTest {
26 26
         //THEN
27 27
         Card testCard = deck.pullCard();
28 28
         String actual = testCard.getName();
29
-
30 29
         Assert.assertEquals(expected, actual);
31 30
     }
32 31
 }