https://github.com/var7600/guessnumber
https://github.com/var7600/guessnumber
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/var7600/guessnumber
- Owner: Var7600
- Created: 2021-11-11T22:04:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T00:37:17.000Z (over 3 years ago)
- Last Synced: 2024-12-29T10:29:58.009Z (over 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bash game
## Guess the number
this game is guess the number game, the computer chooses a positif number and you have to guess it with the minimum of tries possible.
First level-> level 0,you have 3 tries between 0 and 10 and at Each level the number of tries increases by 1 and the range of the number to guess increases by 10.
## Prerequisite
To play this game on your OS you must have a base linux distribution with `bash` version 5.0.17 or early 3.2.57 version, to check your bash version you can use this command on your terminal
```bash
bash --version or echo $BASH_VERSION
```
and you need to install figlet with this command on your terminal
```
sudo apt install figlet
```
figlet command makes turns ordinal terminal text into big
fancy letters , references
[figlet](https://www.linux.com/training-tutorials/linux-tips-fun-figlet-and-toilet-commands/)
and if not already install you need to install cowsay
type
```
sudo apt install cowsay
```
### How to use the Script
- Download
you can download the script to your local computer
with the command on your terminal
```bash
git clone https://github.com/DD7600/guessNumber.git
```
Or you can go to the github page and Dowload the Zip Archive
[github Page](https://github.com/DD7600/guessNumber)
- Run
now that the script is downloaded you can go to the folder where the file is downloaded and type
the command
```bash
/bin/bash guessNumber.sh or ./guessNumber.sh
```
and if everything works the game will start
### Feedback
if you have any problem you can contact me on Discord ```Var7600#3286``` and if you have any suggestion or remark I will appreciate it too.
the script is free you can do what you want with it just have fun!