Skip to content

This project is a simple number guessing game to occupy yourself during your programming sessions, while waiting for some big program to compile, a linux package to install, or an update to download !

Notifications You must be signed in to change notification settings

Pouloo/bash_high_low

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Shell Higher-Lower game

Shell script type

  • Bash
  • Dash
  • C Shell
  • Z Shell
  • Bourne Shell

Technical requirements

  • A working computer!
  • Your command line interpreter of choice.
  • A proper text editor (In case you want to contribute). Some suggested editors are VScode, Notepad++ and Sublime.
  • Some level of boredom.
  • A lot of luck.
  • Appreciation for games with simple gameplay loops (literally).

Description

This project is a simple number guessing game to occupy yourself during your programming sessions, while waiting for some big program to compile, a linux package to install, or an update to download !

Usage and rules

  • When launching the script, the first argument will be the player's lifes, the second one will be the number selection seed (from 0 to arg2); ./shell_guess.sh lives seed .
  • Launching the script without arguments wil result in default settings (5 lives, from 0 to 10 selection).
  • Guessing the number correctly from the first try will terminate the game as a win.
  • Guessing the number incorrectly will remove a life.
  • Guessing the number correctly will grant an additional life.
  • Losing all lifes will terminate the game as a loss.
  • Guessing the number correctly multiple times in a row will put you on a streak.

Contributing

If you'd like to contribute to this project, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request.

About

This project is a simple number guessing game to occupy yourself during your programming sessions, while waiting for some big program to compile, a linux package to install, or an update to download !

Topics

Resources

Stars

Watchers

Forks

Languages