diff --git a/JottoGame.java b/JottoGame.java index f08af55..b80b635 100644 --- a/JottoGame.java +++ b/JottoGame.java @@ -62,7 +62,8 @@ public Optional play() { int attemptsLeft = MAX_GUESSES; while (attemptsLeft > 0) { - System.out.print("Enter guess: "); + System.out.print("Remaining number of guesses: " + attemptsLeft + + System.lineSeparator() + "Enter guess: "); String guess = scanner.nextLine().trim().toUpperCase(); if (guess.length() != WORD_LENGTH || !guess.matches("[A-Z]+")) {