Skip to content

Develpoed VS-Code Terminal based Number Guessing Game. It is a fun and interactive command-line game built using Python. This beginner-level project is a great way to understand the basics of Python programming such as loops, conditionals, user input, and random number generation.

Notifications You must be signed in to change notification settings

DevWithHardik/guess-the-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

guess-the-number

๐ŸŽฏ Number Guessing Game โ€“ Python

This is a simple and interactive Number Guessing Game built using Python. The program randomly generates a number, and the player must guess it. After each guess, the program provides feedback โ€” telling the player to guess higher or lower โ€” until the correct number is guessed. It also keeps track of how many attempts the user takes.

๐Ÿ”น Features

Random number generation using the random module

User input via the terminal

Helpful feedback on each guess (Higher number please / Lower number please)

Tracks and displays the total number of attempts

๐Ÿ› ๏ธ Technologies Used

Python (No external libraries)

Developed using Visual Studio Code

๐Ÿ•น๏ธ How It Works

The program picks a random number (e.g., between 1 and 100)

The player enters their guess

The program responds with:

"Higher number please" if the guess is too low

"Lower number please" if the guess is too high

"Correct!" when the guess is right

After guessing correctly, the total number of attempts is displayed

๐Ÿš€ How to Run

Make sure Python is installed on your system

Clone this repository or download the .py file

Run the script

๐Ÿง  Learning Concepts

Using the random module

Input/output handling in Python

Loops and conditional logic

Basic user interaction in terminal

โœ… Why This Repository?

This game is ideal for:

Students and beginners learning Python

Practicing control flow and user interaction

Building logic and algorithmic thinking

Adding a small but meaningful project to your GitHub portfolio

About

Develpoed VS-Code Terminal based Number Guessing Game. It is a fun and interactive command-line game built using Python. This beginner-level project is a great way to understand the basics of Python programming such as loops, conditionals, user input, and random number generation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages