Skip to content

A simple terminal-based number guessing game written in Python. The program randomly selects a number between 1 and 100, and the player guesses until the correct number is found. This project helped me practice loops, conditionals, random number generation, and user input handling in Python.

Notifications You must be signed in to change notification settings

likhithnd/Guessing_Game_Python_Project_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Guessing_Game

🔢 Number Guessing Game (Python Project)

🎮 Project Description:

This is a fun and interactive Number Guessing Game developed using Python. The player is asked to guess a randomly generated number between 1 and 100. After each guess, the program gives hints to guide the player—like whether the actual number is higher or lower than the guessed number. The game continues until the player correctly guesses the number.

It also keeps track of the number of attempts, so the player can see how many tries it took to guess the correct answer!

🛠️ Features: Random number generation between 1 and 100

Helpful clues (Higher/Lower) after each wrong guess

Counts the total number of attempts

Simple and beginner-friendly code structure

Command-line interface (text-based)

📌 Example: less Copy Edit Guess a number between 1 and 100: 50 Too low! Try again. Guess a number between 1 and 100: 75 Too high! Try again. Guess a number between 1 and 100: 63 Correct! You guessed it in 3 tries. 🚀 Technologies Used: Python 3

random module

input() function for user interaction

🧠 Concepts Practiced: Loops and conditions

Variables

User input

Random number logic

About

A simple terminal-based number guessing game written in Python. The program randomly selects a number between 1 and 100, and the player guesses until the correct number is found. This project helped me practice loops, conditionals, random number generation, and user input handling in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages