Skip to content

eric-with-the-h/iSH_Number_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

iSH_Number_Game

Guess The Correct Number & Win !

Description

number_game.sh is a simple guessing game written in Bash. The objective is to correctly guess a randomly generated number between 1 and 100 in as few attempts as possible. The game provides feedback whether the guess is too high, too low, or correct.

Requirements

  1. iSH app installed on your iOS device or a terminal on your computer.
  2. Basic knowledge of how to use the command line.

How to Play

~ In the iSH App ~

  1. Launch the iSH app: Open the iSH app on your iOS device.
  2. Navigate to the game directory: Use the cd command to navigate to the directory where you have saved the game script. For example:

cd /path/to/your/game

  1. Run the game script: Execute the game script by typing the following command:

./number_game.sh

  1. Make sure the script has executable permissions. If not, you can add executable permissions with:

chmod +x number_game.sh

  1. Start guessing: The game will prompt you to guess a number between 1 and 100. Enter your guess and press Enter/Return

Guess a number between 1 & 100

  1. Receive feedback: After each guess, the game will give you feedback indicating whether your guess was too high, too low, or correct.

  2. Continue playing: The game will continue to prompt you for guesses until you find the correct number. Try to guess the number in as few attempts as possible.

~ In the Terminal ~

  1. Open your terminal: Launch the terminal application on your computer.
  2. Navigate to the game directory: Use the cd command to navigate to the directory where you have saved the game script. For example:

cd /path/to/your/game

  1. Run the game script: Execute the game script by typing the following command:

./number_game.sh

  1. Ensure the script has executable permissions. If not, you can add executable permissions with:

chmod +x number_game.sh

  1. Start guessing: The game will prompt you to guess a number between 1 & 100. Enter your guess and press Enter/ Return.

Guess a number between 1 and 100

  1. Receive feedback: After each guess, the game will give you feedback indicating whether your guess was too high, too low, or correct.

  2. Continue playing: The game will continue to prompt you for guesses until you find the correct number. Try to guess the number in as few attempts as possible.

About

Guess The Correct Number & Win !

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages