Sfoglia il codice sorgente

fixed game annoucnement for Craps and Blackjack

NedRedmond 6 anni fa
parent
commit
3794e889c9

+ 0
- 1
src/main/java/io/zipcoder/casino/Casino.java Vedi File

@@ -64,7 +64,6 @@ public class Casino {
64 64
                 game = new GoFish();
65 65
                 break;
66 66
         }
67
-
68 67
         runGame(game);
69 68
      }
70 69
 

+ 1
- 1
src/main/java/io/zipcoder/casino/cardgames/BlackJack.java Vedi File

@@ -19,6 +19,7 @@ public class BlackJack extends CardGame implements Gamble {
19 19
     CardHand dealerHand = new CardHand();
20 20
 
21 21
     public BlackJack(){
22
+        announceGameChoice();
22 23
         readyPlayers();
23 24
         dealCards(2);
24 25
         runGame();
@@ -32,7 +33,6 @@ public class BlackJack extends CardGame implements Gamble {
32 33
 
33 34
     @Override
34 35
     public void runGame(){
35
-        announceGameChoice();
36 36
         for(int i = 0; i < blackJackPlayers.size(); i++){
37 37
             play(blackJackPlayers.get(i),blackJackPlayers.get(i).getBet());
38 38
         }

+ 1
- 1
src/main/java/io/zipcoder/casino/dicegames/Craps.java Vedi File

@@ -16,6 +16,7 @@ public class Craps extends DiceGame implements Gamble {
16 16
     long bet;
17 17
 
18 18
     public Craps() {
19
+        announceGameChoice();
19 20
         readyPlayers();
20 21
         runGame();
21 22
     }
@@ -33,7 +34,6 @@ public class Craps extends DiceGame implements Gamble {
33 34
 
34 35
     @Override
35 36
     public void runGame(){
36
-        announceGameChoice();
37 37
         for(int i = 0; i < crapsPlayers.size(); i++){
38 38
             greetPlayer(crapsPlayers.get(i).getP());
39 39
             play(crapsPlayers.get(i));