New Python Program: Number Guessing Game
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 55/100
Línea de trabajo
Crea number_guessing_game.py según lo especificado en el issue. Empieza revisando los requisitos del juego indicados y ejecuta el programa manualmente con entradas correctas, demasiado altas, demasiado bajas y no válidas. Está terminado cuando el juego selecciona un número del rango indicado, limita los intentos, proporciona comentarios claros y gestiona las entradas no válidas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello Python enthusiasts! Let's add some fun to our repository with a classic Number Guessing Game implemented in Python. This beginner-friendly task involves creating a Python program where the computer randomly selects a number, and the user has to guess it within a limited number of attempts. This game will demonstrate basic random number generation, input handling, and conditional statements.
Tasks:
- Generate a random number between a specified range (e.g., 1 to 100).
- Allow the user a limited number of attempts to guess the number correctly.
- Provide feedback to the user if their guess is too high, too low, or correct.
- Display a victory message if the user guesses the number within the allowed attempts.
- Implement error handling for invalid inputs.
Guidelines:
- Use Python 3.x for the program.
- Ensure the game provides clear instructions and feedback to the user.
- Include comments in your code to explain the logic and functionality.
- Test the game with various scenarios to ensure it works as expected.
Example:
Welcome to the Number Guessing Game!
I'm thinking of a number between 1 and 100.
You have 7 attempts to guess it.
Enter your guess: 50
Too high! You have 6 attempts left.
Enter your guess: 30
Too low! You have 5 attempts left.
Enter your guess: 40
Correct! Congratulations, you guessed the number in 3 attempts!
How to Contribute:
- Fork this repository.
- Create a new Python file for the Number Guessing Game:
number_guessing_game.py. - Write the Python program following the specified tasks and guidelines.
- Test the game thoroughly to ensure it functions correctly.
- Commit your changes:
git commit -m "Add Number Guessing Game program" - Push to your branch:
git push origin add-number-guessing-game - Open a pull request to this repository.
Your contribution will bring joy to users playing this classic game. Thank you for creating this entertaining Python program for our repository!
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 9
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de KALIIOWORK/basic_python_programs
-
good first issue hacktoberfest
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
KALIIOWORK/basic_python_programs#10 · 1 comentario ·
-
good first issue hacktoberfest
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
KALIIOWORK/basic_python_programs#8 · 2 comentarios ·
-
good first issue hacktoberfest
Dificultad 2/5 1-3 horas Aptitud para principiantes 50/100
KALIIOWORK/basic_python_programs#6 · 1 comentario ·
-
good first issue hacktoberfest
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
KALIIOWORK/basic_python_programs#1 · 2 comentarios ·
Todos los issues de KALIIOWORK/basic_python_programs
Issues similares
-
link-check link-check:sphinx-theme
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
OpenHands/extensions#626 · 1 comentario ·
-
Change observation tooltip text Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
CSCfi/sd-search-api#39 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100