A fun, interactive Bash script that challenges users to guess the number of files in the current directory. The game provides hints if the guess is too high or too low, and congratulates the player upon correctly guessing the file count.
- Counts files in the current directory dynamically
- Validates user input
- Provides real-time feedback on guesses
- Continues until the correct number is guessed
- Run the script with
bash guessinggame.sh
- Enter your guess for the number of files
- Receive hints if your guess is incorrect
- Win by guessing the exact number of files
- Bash shell
- Basic Unix/Linux environment
- Clone the repository
- Make the script executable:
chmod +x guessinggame.sh
- Run the game:
bash guessinggame.sh