Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 851 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 851 Bytes

Number Guessing Game

Setting the Range

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.

Guessing the Secret Number

  • 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.

Winning the Game

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.

Playing Again

After each game, you will have the option to play again or end the game.