I need some help getting the computer to guess a number within 7 tries. I think I know what needs to be done but I'm not sure how to implement in code. For instance, user enters 50, computer guess 75, then the computer must guess again but lower than 75 etc.
The problem I have is I can get the computer to guess less than 75 on the first turn but after that it doesn't work.