Browse Source

fixed cardgame class

Lewis Dominguez 6 years ago
parent
commit
d9271d95a9
1 changed files with 8 additions and 23 deletions
  1. 8
    23
      src/main/java/io/zipcoder/casino/CardGame.java

+ 8
- 23
src/main/java/io/zipcoder/casino/CardGame.java View File

@@ -17,36 +17,21 @@ public abstract class CardGame implements Game, Gamble {
17 17
     }
18 18
 
19 19
 
20
-    public int drawCard() {
20
+    public abstract int drawCard();
21 21
 
22
+    public abstract void stand();
22 23
 
23
-    }
24
-
25
-    public void stand() {
26
-
27
-    }
24
+    public abstract void startGame();
28 25
 
29
-    void startGame() {
30
-
31
-
32
-
33
-    }
26
+    public abstract void endGame();
34 27
 
35
-    void endGame();
28
+    public abstract void declareWinner();
36 29
 
37
-    void declareWinner();
30
+    public abstract void winBet();
31
+    
32
+    public abstract void loseBet(Player player);
38 33
 
39
-    void bet(int currentBet) {
40 34
 
41
-    }
42
-
43
-    void winBet() {
44
-
45
-    }
46
-
47
-    void loseBet(Player player) {
48
-
49
-    }
50 35
 
51 36
 }
52 37