Your challenge! Make the guessing game even more informative
To become a good programmer, what you need to do is to practise, practise and practise!
So here are some challenges for you.
In our latest version of the guessing game, the program will tell the user that their guess is either “correct”, “too high”, or “too low”. Now, try to make the guessing game even more informative.
For example, try designing a version of the guessing game that instead gives an indication of how close the user’s guess is to the secret number. Design a guessing game that outputs “cold” when the number is incorrect but far from the secret number, “hot” when it is incorrect but close, and “correct” when it is correct. You can decide for yourself how close you want the number to be from the secret number to be considered “hot”, and how far for “cold”.
After that, try making it even more informative, with five degrees of correctness: “cold”, “cool”, “warm”, “hot”, “correct”. Again, you can decide for yourself what you mean by “cold”, “cool”, etc.
Try these challenges before moving on!
And remember, think about the problem before actually writing your pseudocode!