-
March 31st, 2013, 12:25 PM
#1
Not sure what kind of code to write
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
--------------------------------------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|