Print total of each hand

This commit is contained in:
Dave Burke
2022-03-03 21:46:24 -06:00
parent 7e09a58f32
commit 9fac5530e4

View File

@@ -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)));
}
/**