An open API service indexing awesome lists of open source software.

https://github.com/lakshayd02/number-guessing-game_python

A fun and interactive number guessing game written in Python! Try to guess the randomly generated number between 1 and 50. Perfect for practicing your Python skills and having a bit of fun! 🎉
https://github.com/lakshayd02/number-guessing-game_python

guess-the-number number-guessing-game python python3 pythonlibrarires random-library

Last synced: 3 months ago
JSON representation

A fun and interactive number guessing game written in Python! Try to guess the randomly generated number between 1 and 50. Perfect for practicing your Python skills and having a bit of fun! 🎉

Awesome Lists containing this project

README

        

# 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. 🐍