I understand Very well, the line
max = max +1;
But when playing the game, I find it confusing to the player that the max number he will have to choose from will also be changed from 1000 to 1001.
I tried to change the position of this line to the void update, but “guess” went way higher than 1000.
My question is : is there a better solution for this issue ?