hi there,
so i am new at scratch and have an assignment I have to finish.
The assignment is to create a guessing game. A sprite has to ask you to choose a number in your head between 1 and 100. It will then ask you whether it is smaller than 51. The user types in either yes or no. It will then continue searching in the bottom or top half of the remaining range of numbers depending on the answer.
I have no idea how to do this. Ive been told you do not need a lot of code, however I need help ASAP!
Please and thanks!
Offline
Here's a possible way of doing it, though there is probably an easier solution:
Offline
This is a possible way of doing, however do you know to do it by using a range of numbers? For example is my number is 32, it will ask me whether my number is lower to 51. Since it is, i would right yes, then it would ask me if my number is lower than 26. Etc.
I need to use the equation middle=lower+round((upper-lower)/2) to get the middle range.
Offline