Skip to content

Sahil-Vaidya/Number-Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Number Guessing Game

Welcome to the Number Guessing Game! This is a simple game where the computer selects a random number within a specified range, and the player tries to guess that number within a limited number of attempts.

How to Play

  1. Clone the repository to your local machine using the following command:

  2. Navigate to the directory containing the game files:

  3. Compile the game by running the appropriate command based on your compiler. For example:

  4. Run the compiled executable:

  5. Follow the prompts to enter your guess. If your guess is too high or too low, the game will provide feedback to help you narrow down your guesses.

  6. Keep guessing until you correctly guess the number or run out of attempts.

  7. After the game ends, you will have the option to play again or exit.

Features

  • Random number generation within a specified range.
  • User input validation to ensure guesses are within the valid range.
  • Feedback on each guess to indicate whether it is too high, too low, or correct.
  • Option to play multiple rounds of the game.

Requirements

  • C++ compiler (e.g., g++)
  • Standard C++ library

Files

  • number_guessing_game.cpp: Contains the main game logic.
  • README.md: Provides instructions and information about the game.

Contributions

Contributions to improve the game are welcome! If you have any suggestions, bug fixes, or new features to add, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages