Hello, ive just started programming on my school. Im currently programming in blitzmax/blitz3d.
Now my teacher asked me to make the Guess the number game (u all know probably) but then the opposite way.
So that i fill in a number, and the computer guesses it as fast as it can (between 1 and 100).
for example, it should look like this in it finished form:
Choose a number between 1-100
'example' 27
Computer is guessing now
50
to high
25
to low
38
to high
32
to high
29
to high
27
Congratulations computer!
U have chosen the right number '27' in (how many steps it needed to find it)
Now the teacher told me i could not ask help from him or anything.. i needed to find it on my own, since i only had like 3 hours of programming yet.. its impossible for me to do that without help. so thats why i am asking you guys for help

Please help me with this, and post the script or something..
Thank you,
Tobian Wuite