Skip to content

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.

Notifications You must be signed in to change notification settings

SalahKhadir/The-Unix-Workbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Guessing Game Bash Script

Overview

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.

Features

  • Counts files in the current directory dynamically
  • Validates user input
  • Provides real-time feedback on guesses
  • Continues until the correct number is guessed

How to Play

  1. Run the script with bash guessinggame.sh
  2. Enter your guess for the number of files
  3. Receive hints if your guess is incorrect
  4. Win by guessing the exact number of files

Requirements

  • Bash shell
  • Basic Unix/Linux environment

Installation

  1. Clone the repository
  2. Make the script executable: chmod +x guessinggame.sh
  3. Run the game: bash guessinggame.sh

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published