KALIIOWORK / KALIIOWORK/basic_c-_programs

Introduction to Control Statements: Implementing a Number Guessing Game in C++

Abierto
#9 1 comentario 0 reacciones 0 asignados Ver en GitHub
good first issue hacktoberfest
Lenguaje dominante
C++
Estrellas
0
Forks
6
Métricas de merge de PR
Sin PR fusionados en 30 d

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:**
1. Fork this repository to your GitHub account.
2. Clone the forked repository to your local machine: `git clone https://github.com/KALIIOWORK/basic_c-_programs.git`
3. Create a new C++ file named `number_guessing_game.cpp`.
4. Implement a function to generate a random number between 1 and 100.
5. Implement the main game logic, allowing the user to input their guess and providing appropriate hints.
6. Ensure the game displays a victory message when the user guesses the correct number.
7. Test your number guessing game with multiple attempts to validate its functionality.
8. Compile and run your program to confirm it works as intended.
9. Commit your changes and push them to your forked repository.
10. 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! 🎮✨

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Create number_guessing_game.cpp as described in the issue. Start by reviewing the repository's existing beginner C++ programs, then compile and run the program with multiple guesses. It is done when a random number from 1 to 100 is generated, higher/lower hints are shown, and a victory message appears after the correct guess.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
cpp
Área
cli
Tipo de issue
Nueva funcionalidad
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.