ValantineSuh / number-guessing-game

MIT License
1 stars 1 forks source link

Number-guessing-game

A simple and fun number guessing game written in Bash. In this game, players guess a randomly generated number within a specific range, depending on the chosen difficulty. Players will receive hints along the way, and the game tracks high scores to make things more exciting.


šŸš€ How to Run the Game

Follow these steps to clone the repository, run the game, and start playing:

1. Clone the Repository:

cd number-guessing-game

- For **ssh**:
```bash
git clone git@github.com:ValantineSuh/number-guessing-game.git

cd number-guessing-game

2. Make the Script Executable:

chmod +x my-game.sh

3. Run the Game:

./my-game.sh

šŸ”„ Features

šŸŽÆ Example Game Flow

====================================================
   šŸŽ® Welcome to the Number Guessing Game šŸŽ®
====================================================
Choose a difficulty level: 
      1. Easy 
      2. Medium 
      3. Hard
Enter 1, 2, or 3: 2
You chose Medium. Guess a number between 1 and 100.
Enter your guess: 50
Too low! Attempts left: 6
Enter your guess: 75
Too high! Attempts left: 5
Hint: The number is odd.
Enter your guess: 67
šŸŽ‰ Congratulations! You guessed the number in 4 attempts.
šŸ† New High Score: 4 attempts!

šŸ“‹ How to play

1) Select a difficulty level:

2) Enter your guesses:

3) Hints:

4) High Score Tracking:

5) Play Again:

šŸŒŸ Future Improvements (Ideas)

šŸ“œ License

This project is licensed under the MIT License feel free to fork, modify, and enjoy!