瀏覽代碼

all my test pass

CHU1TA26 6 年之前
父節點
當前提交
7f0d4c4298

+ 1
- 1
src/main/java/io/zipcoder/casino/BlackJackPlayer.java 查看文件

@@ -8,7 +8,7 @@ public class BlackJackPlayer extends Player {
8 8
 
9 9
 
10 10
 
11
-    public BlackJackPlayer(Wallet wallet, double bet) {
11
+    public BlackJackPlayer(Wallet wallet, double bet, Hand hand) {
12 12
         super(wallet, bet);
13 13
         this. hand= hand;
14 14
     }

+ 2
- 1
src/test/java/io/zipcoder/casino/TestPlayer.java 查看文件

@@ -25,7 +25,8 @@ public class TestPlayer {
25 25
         //given
26 26
         Wallet wallet = new Wallet(100.00, "Nury H.");
27 27
         Player player = new Player(wallet, 50);
28
-
28
+        player.bet(50);
29
+         player.setState("wins");
29 30
         //when
30 31
         if (player.getState().equals("wins")){
31 32
             player.addWining();