Skip to content

sivasankar61/number_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

This is a simple command-line Number Guessing Game built using Python. The program randomly selects a number between 1 and 100, and the player must guess the correct number. After each guess, the program provides hints to help the player reach the correct answer.

The game also tracks the number of attempts taken by the player to guess the correct number.

⚙️ How the Game Works

The program generates a random number between 1 and 100.

The user is asked to enter a guess.

The program checks the guess and gives feedback:

If the guess is higher, it says "Try a lower number."

If the guess is lower, it says "Try a higher number."

The process continues until the user guesses the correct number.

Once correct, the program displays the total number of attempts.

About

number guessing game by using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages