🎉 Welcome to the Number Guessing Game! 🎉
This is a simple and fun number guessing game written in C. The objective of the game is to guess a randomly generated number between 1 and 100, with hints provided along the way.
- Random Number Generation: The game generates a random number between 1 and 100.
- Colorful Console Output: The game uses ANSI color codes for an engaging user experience.
- User-Friendly Prompts: Clear instructions and feedback are provided for each guess.
- Count of Attempts: The game keeps track of the number of attempts taken to guess the correct number.
- A C compiler (e.g., GCC, Clang)
- Terminal that supports ANSI color codes
- Clone the repository or download the source code:
git clone https://github.com/Sumangal44/C-Projects-Collection.git
cd number-guessing-game
cd src
gcc number_guessing_game.c -o number_guessing_game
./number_guessing_game
Welcome to the Number Guessing Game!
Guess a number between 1 and 100.
Enter your guess: 50
Too high! Try again.
Enter your guess: 25
Too low! Try again.
Enter your guess: 37
Congratulations! You guessed the correct number in 3 attempts.