From 9fac5530e4bfdd23ff2a6d4806ac4806c2154323 Mon Sep 17 00:00:00 2001 From: Dave Burke Date: Thu, 3 Mar 2022 21:46:24 -0600 Subject: [PATCH] Print total of each hand --- 10_Blackjack/java/src/Game.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/10_Blackjack/java/src/Game.java b/10_Blackjack/java/src/Game.java index a53fb80c..a254aa4a 100644 --- a/10_Blackjack/java/src/Game.java +++ b/10_Blackjack/java/src/Game.java @@ -193,7 +193,7 @@ public class Game { userIo.println("SECOND HAND RECEIVES A " + card.toString()); } play(player, 2); - break; + return; // Don't fall out of the while loop and print another total } else { userIo.println("SPLITTING NOT ALLOWED"); action = userIo.prompt("PLAYER " + player.getPlayerNumber() + " "); @@ -206,7 +206,7 @@ public class Game { } } } - + userIo.println("TOTAL IS " + scoreHand(player.getHand(handNumber))); } /**