Introduction to Control Statements: Implementing a Number Guessing Game in C++
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 45/100
Línea de trabajo
Crea number_guessing_game.cpp como se describe en el issue. Primero revisa los programas de C++ existentes para principiantes en el repositorio y, después, compila y ejecuta el programa con varios intentos. Está terminado cuando se genera un número aleatorio del 1 al 100, se muestran indicaciones de «más alto»/«más bajo» y aparece un mensaje de victoria después de acertar.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Embark on a coding adventure with this interactive C++ task! This beginner-level challenge will introduce you to control statements and user input handling by guiding you to create a number guessing game.
Task:
Your challenge is to develop a C++ program for a number guessing game. Generate a random number between 1 and 100 and allow the user to guess the number. Provide hints (higher, lower) until the user correctly guesses the number.
Instructions:
- Fork this repository to your GitHub account.
- Clone the forked repository to your local machine:
git clone https://github.com/KALIIOWORK/basic_c-_programs.git - Create a new C++ file named
number_guessing_game.cpp. - Implement a function to generate a random number between 1 and 100.
- Implement the main game logic, allowing the user to input their guess and providing appropriate hints.
- Ensure the game displays a victory message when the user guesses the correct number.
- Test your number guessing game with multiple attempts to validate its functionality.
- Compile and run your program to confirm it works as intended.
- Commit your changes and push them to your forked repository.
- Open a pull request with your changes.
Note:
This task will strengthen your understanding of control statements and user interaction in C++. Building an interactive game is a fun way to practice your skills. Enjoy coding and happy gaming! 🎮✨
- Lenguaje dominante
- C++
- Estrellas
- 0
- Forks
- 6
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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_c-_programs
-
good first issue hacktoberfest
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
KALIIOWORK/basic_c-_programs#8 · 1 comentario ·
-
good first issue hacktoberfest
Dificultad 1/5 1-3 horas Aptitud para principiantes 45/100
KALIIOWORK/basic_c-_programs#7 · 1 comentario ·
-
good first issue hacktoberfest
Dificultad 2/5 1-3 horas Aptitud para principiantes 38/100
-
good first issue hacktoberfest
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
KALIIOWORK/basic_c-_programs#3 · 1 comentario ·
Todos los issues de KALIIOWORK/basic_c-_programs
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
KhronosGroup/Vulkan-Tutorial#524 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
microsoft/onnxruntime-genai#2633 ·
Los mantenedores suelen responder en 1 día
-
mapper bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
firebase/firebase-ios-sdk#16718 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
tesseract-ocr/tesseract#4627 ·