we said min =1 but than we said min=guess so why( print (“lowest number u can pick is” + min); ) thats still shows the 1?
Hi,
From memory, you update the value of min, or max, each time the computer makes a new guess, based on whether the player clicked on either the higher, or lower button.
If the lower button is clicked then max
is set to the current guess. If the higher button is clicked, then min
is set to the current guess.
The print statement is to show the available range the player can choose between.
Hope this helps.
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.