Lewis Dominguez il y a 6 ans
Parent
révision
15d92de9b1
1 fichiers modifiés avec 45 ajouts et 36 suppressions
  1. 45
    36
      src/main/java/io/zipcoder/casino/CardGame.java

+ 45
- 36
src/main/java/io/zipcoder/casino/CardGame.java Voir le fichier

@@ -2,44 +2,53 @@ package io.zipcoder.casino;
2 2
 
3 3
 public abstract class CardGame implements Game, Gamble {
4 4
 
5
-//    int playerHand;
6
-//    int dealerHand;
7
-//    int currentBet;
8
-//    Player player;
9
-//    CardDeck deck;
10
-//
11
-//    public CardGame(Player player) {
12
-//
13
-//        this.player = player;
14
-//        this.deck = new deck();
15
-//
16
-//    }
17
-//
18
-//
19
-//    public int drawCard() {
20
-//
21
-//
22
-//    }
23
-//
24
-//    public void stand() {
25
-//
26
-//    }
27
-//
28
-//    void startGame();
29
-//
30
-//    void endGame();
31
-//
32
-//    void declareWinner();
33
-//
34
-//    void bet(int currentBet) {
35
-//
36
-//    }
37
-//    void winBet() {
38
-//
39
-//    }
40
-//    void loseBet(Player player) {
5
+
6
+    int playerHand;
7
+    int dealerHand;
8
+    int currentBet;
9
+    Player player;
10
+    CardDeck deck;
11
+
12
+    public CardGame(Player player) {
13
+
14
+        this.player = player;
15
+        this.deck = new deck();
16
+
17
+    }
18
+
19
+
20
+    public int drawCard() {
21
+
22
+
23
+    }
24
+
25
+    public void stand() {
26
+
27
+    }
28
+
29
+    void startGame() {
30
+
31
+
32
+
33
+    }
34
+
35
+    void endGame();
36
+
37
+    void declareWinner();
38
+
39
+    void bet(int currentBet) {
41 40
 
42 41
     }
43 42
 
43
+    void winBet() {
44
+
45
+    }
46
+
47
+    void loseBet(Player player) {
48
+
49
+    }
50
+
51
+}
52
+
44 53
 
45 54