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