|
@@ -2,42 +2,42 @@ 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
|
+ 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) {
|
41
|
41
|
|
42
|
42
|
}
|
43
|
43
|
|