mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 12:51:29 -08:00
Print total of each hand
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user