Just give it what it asks of you.
I got the algorithm (known as a binary chop) for guessing from a coding class on Udemy (namely the Unity 2D course) for a similar game. However, the game only went to 1000 and lacked color, so I came to Scratch and made it. My father (and Khan Academy) also told me that the running time of a binary search is equal to log2(max), rounded up. I just wanted to upload it so I can move some stuff out of my unshared folder. Seriously, I have 77 projects in there. 76 now.