Braining Out The Logic
When will guesses be made?
- Initially, when the program begins (called form_load)
- In response to a Yes answer
- In response to a No answer
In addition to the first guess what happens at start
- Initialize loSide = 0
increment = 100
In addition to a guess, what happens on a Yes?
- Add-in increment, as weight is more than loSide + inc
In addition to a guess, what happens on a No?
- Reduce the increment by dividing by 10
- Check if the increment is below 1 … that’ll be the answer