Jul-24-2017, 03:52 AM
(Jul-24-2017, 03:23 AM)CTT Wrote: Thanks guys! but I think I have to update both max and min when I input a new number (Sorry maybe what I said wasn't clear enough)
First I have to input the answer(let's say 45), and the output should be "1 < ? < 100"
Next I'll input my first guess(ex:50), and the output will be "wrong answer, guess smaller" "1<?<50"
Next I'll input my second guess(ex:30), and the output will be "wrong answer, guess larger" "30<?<50"
Um, you're contradicting yourself. When you input the first guess, you only update the max. The min stays at 1. When you input the second guess, you only update the min. The max stays at 50. Only one number is changing each time you make a guess.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures