You will be prompted to enter the minimal and maximal values for the range within which the secret number will be randomly selected. Ensure that the minimum value is less than the maximum value.
- The game will randomly select a secret number within the specified range.
- You will be prompted to guess the secret number.
- After each guess, the game will inform you if your guess is too high, too low, or correct.
- If your guess is outside the specified range, you'll be reminded to guess within the correct range.
Once you correctly guess the secret number, the game will congratulate you and tell you how many attempts it took to find the correct number.
After each game, you will have the option to play again or end the game.