Thread: HiLo game
View Single Post
HiLo game
Posts: n/a
Default HiLo game - 12-10-2008, 08:32 PM

I have students writing a simple HiLo game where they generate a random number from 1 to 100 and then some object tries to guess it. Sometimes when the guess is equal to the number and the two are compared in a while loop (while guess != number) the loop keeps going and the bject says too high or too low. How can I remedy this situation?
Reply With Quote