Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guess the Number Game #290

Open
Harshsaini001 opened this issue Oct 18, 2024 · 2 comments
Open

Guess the Number Game #290

Harshsaini001 opened this issue Oct 18, 2024 · 2 comments

Comments

@Harshsaini001
Copy link

A "Guess the Number" game in Python is a simple, interactive program where the computer randomly selects a number within a specified range, and the player has to guess what the number is. The program provides feedback after each guess, indicating whether the guessed number is too high, too low, or correct. The game continues until the player guesses the correct number. It can be enhanced by adding features such as tracking the number of attempts or limiting the number of guesses.

Key Features:
Random number generation: The program selects a random number using Python's random module.
User input: The player guesses the number through input, and the program checks whether it's correct.
Conditional feedback: After each guess, the program tells the player if the guess was too high, too low, or correct.
Looping mechanism: The game continues until the player guesses the correct number, often implemented with a while loop.
Customization options: The range of numbers and the number of allowed guesses can be modified.

@Harshsaini001
Copy link
Author

Hii @strivedi4u , Instead of writing code for the DSA problem, I want to write code for the Guess the Number game in Python, so can you assign me this.

@IamJayPrakash
Copy link

hi can you assign this to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants