Hi!
I'm creating a guessing game where I ask the user to guess a number between 1-1000.
The output where the computer asks the user for a number is contained in a do loop.
The problem I'm having is that I have a high score list and in the high score list it should say how long time it took until the user guessed the correct number. It should start counting when the user enters his first guess and end when he types the correct number. I'm using start = System.currentTimeMillis(); to count the time.
So do I have to change it to a for loop or is there some other way to solve this? I really want to make it as simple as possible and not have to change my whole code cause I'm too lazy atm.
Any advice is appreciated!