Welcome to the Number Guessing Game!
This is a fun terminal-based game written in C, where the user tries to guess a randomly generated number.
- A random number is generated within a specified range.
- The user is prompted to guess the number.
- Hints such as "Too High!" or "Too Low!" help guide the player.
- The game continues until the correct number is guessed.
- The total number of attempts is displayed at the end.
- โ Random number generation
- โ User-friendly console interface
- โ Helpful hints for easier guessing
- โ Tracks the total number of attempts
Guess the number: 6
HIGHER NUMBER PLEASE!
Guess the number: 67
HIGHER NUMBER PLEASE!
Guess the number: 89
LOWER NUMBER PLEASE!!
Guess the number: 80
LOWER NUMBER PLEASE!!
Guess the number: 75
HIGHER NUMBER PLEASE!
Guess the number: 78
LOWER NUMBER PLEASE!!
Guess the number: 77
Congrats! ๐
You guessed the number in 7 guesses!- C Programming Language
- GCC Compiler
- Clone or download this repository.
- Open the folder in your terminal or IDE.
- Compile the program using:
gcc number_guessing_game.c -o game- Run the executable:
./game