The program is called Hi-Low, where the computer generates a random number and the user inputs guesses.
The problem im facing is trying to find out which loop or function to use to display the output properly.

Everytime the user enters a guess, it displays if their guess is low or high and then tells them to try again until they get it correct.
It also displays the number of tries at the bottom of the screen.

What can I use to allow the attempts to scroll through, but then the bottom refreshes the number of tries.

For example, after two attempts the screen would look like:
--------------------------------------------------------------------
Enter your guess <1 - 100>: 50
LOW
Enter your guess <1 - 100>: 75
CORRECT

Games played: 2
--------------------------------------------------------------------