Guessing Game
C++
--
I am taking a course on Modern C++ for Computer Vision and Image Processing:
As part of the first homework, I had to write a program to do the following:
The program will pick a random number from 0 to 99 and the player will be guessing this number by providing a guess through stdin. Depending on
which number the player guessed there are 3 outcomes:
• The player guessed the number. Then the program has to tell that the player has won.
• Guessed number if larger than the target one. The program should tell that its number is smaller.
• Guessed number is smaller than the target one. The program should tell that its number is larger.
The game goes on until the player guesses the number.