Max Kohl guessing game

The only spec I haven't fully completed yet is outputting an error and not using up a guess. Right now it will successfully check if the number is out of the (1..10) range, but I can't get the guess counter loop to run all the way through. This error only happens when an out-of-range number is guessed; if a number within the (1..10) range is entered, the program runs perfectly (at least, to my knowledge so far!)
Many developers feel that using 'case' statements is bad practice. Generally, if...else is better. Here, since we're only choosing between two options, I'd actually recommend using a ternary operator.
e.g.
puts (guess < random_number) ? "Guess again! Hint: go higher." : "Guess again! Hint: go lower."
or even
puts "Guess again! Hint: go " + (guess < random_number ? "higher" : "lower")