← 全部工具

vaishnavi-142006/Python_Number_Guessing_Game

热度 75 更新于 开发与构建

A simple command-line Python number guessing game where the player guesses a randomly generated number with instant feedback.

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

🎯 Python Number Guessing Game

A simple command-line Number Guessing Game built using Python. The program generates a random number, and the player tries to guess it with hints provided after each attempt.

📌 Features

  • 🎲 Random number generation
  • 💬 User-friendly command-line interface
  • 📈 Instant feedback
  • ✅ Congratulates the player on a correct guess
  • 🔁 Allows multiple guessing attempts

🛠️ Technologies Used

  • Python 3

📂 Project Structure

Python_Number_Guessing_Game/
│── number_guessing_game.py
└── README.md

▶️ How to Run

  • Clone the repository
git clone https://github.com/vaishnavi-142006/Python_Number_Guessing_Game.git
  • Open the project folder
cd Python_Number_Guessing_Game
  • Run the program
python number_guessing_game.py

📸 Sample Output

🎯 Welcome to the Number Guessing Game!

Guess a number between 1 and 10

Enter your guess: 6
You Lose! The number was:5


Enter your guess: 5

🎉 You win!

🎯 Learning Outcomes