Hi.
I’m not sure if this has been mentioned before, but the current code keep guessing higher numbers after it has reached 1.000 even though that was our starting max - so it might guess 1.007 if we keep smashing “Higher” after reaching 1.000.
I fixed this with:
public void OnPressHigher()
{
if (min < max-1)
{
min = guess;
NextGuess();
}
}
The idea is, that I check if max is more than one higher than min, because else min it will actually end up being higher than max at some point.
Is this a good way to fix this bug?