There is a delay in displaying the numbers

So I’m not sure what the deal is, but whenever I am playing the game to test it, there seems to be an obvious delay in the numbers that the computer is guessing. An example of this is that it starts out at 500 as an initial guess, but when I click higher, it is still displaying 500, even though the computer recognizes that I’ve clicked the higher button. It seems like this, because when I click higher again, it reveals the number that should have been displayed the first time I clicked. It completely messes up the flow of the game and I really want to figure this out.

This is the code I have written:

Close topic, I figured it out. I didn’t realize you needed the text.text = guess.ToString(); to be below the guess = (max + min) /2.

Is this because it reads it top to bottom?

1 Like

Yes each line from top to bottom is executed in order. Your game was working just the user couldn’t see that as it was always a guess behind :stuck_out_tongue: Good job in solving it yourself :slight_smile:

Awesome, thank you for responding!

Privacy & Terms