|
@@ -174,9 +174,12 @@ public class BlackJack {
|
174
|
174
|
setCurrentBet(currentBet * 2);
|
175
|
175
|
dealToPlayerHand(1);
|
176
|
176
|
pStay = true;
|
|
177
|
+ dStay = false;
|
177
|
178
|
Console.output("You now have:\n" + getPlayerHand() + " for a total of " + calcHand(playerHand));
|
178
|
179
|
if (calcHand(playerHand) > 21) {
|
|
180
|
+ delay(1500);
|
179
|
181
|
playerBust();
|
|
182
|
+ dStay = true;
|
180
|
183
|
}
|
181
|
184
|
}
|
182
|
185
|
|
|
@@ -236,7 +239,8 @@ public class BlackJack {
|
236
|
239
|
|
237
|
240
|
private void newDeal(){
|
238
|
241
|
Console.output("You have " + player.getBankroll() + " in your players account.");
|
239
|
|
- int bet = Console.numberFromString(Console.askForInput("Starting bet amount: "));
|
|
242
|
+ delay(1000);
|
|
243
|
+ int bet = Console.numberFromString(Console.askForInput("How much would you like to bet? "));
|
240
|
244
|
setCurrentBet(bet);
|
241
|
245
|
Console.output("Dealing...");
|
242
|
246
|
delay(2000);
|
|
@@ -248,9 +252,13 @@ public class BlackJack {
|
248
|
252
|
|
249
|
253
|
public void startGame() {
|
250
|
254
|
start();
|
|
255
|
+ Console.output("Welcome. I am your dealer Vince.");
|
|
256
|
+ delay(1000);
|
251
|
257
|
Console.output("Starting BlackJack...");
|
|
258
|
+ delay(1000);
|
252
|
259
|
while (playingBJ) {
|
253
|
260
|
while (askToPlayAgain) {
|
|
261
|
+ delay(1000);
|
254
|
262
|
String answer = Console.askForInput("Would you like to play again? (Y/N)");
|
255
|
263
|
if (answer.equals("y")) {
|
256
|
264
|
setPlayingHands(true);
|