Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 852 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 852 Bytes

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