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: