Skip to content

Latest commit

 

History

History
27 lines (13 loc) · 1.24 KB

README.md

File metadata and controls

27 lines (13 loc) · 1.24 KB

Number-Guessing-Game_Python

Description

This Python program generates a secret random number between 1 and 50. The player is then prompted to guess the number. The program provides feedback after each guess, indicating whether the guess is too high or too low. It keeps track of the number of attempts and congratulates the player when they guess correctly. It also includes error handling to ensure that the player enters valid numerical input. A classic game that's great for learning basic programming concepts! 🕹️

Features

  • Random Number Generation: The program generates a random number between 1 and 50 using Python's random module. 🎲

  • User Input: Prompts the user to enter their guess. ⌨️

  • Feedback on Guesses: Tells the user if their guess is too high or too low. ⬆️⬇️

  • Attempt Counter: Tracks the number of guesses the user has made. 🔢

  • Win Condition: Congratulates the user when they guess the correct number. 🏆

  • Game Loop: Allows the user to keep guessing until they win or choose to quit. 🔄

  • Input Validation: Checks if the user's input is a valid number. ✅

Technologies Used

  • Python: The core programming language for the game logic and user interface. 🐍