Skip to content

The popular game snake completely programmed in bash... snash

License

Notifications You must be signed in to change notification settings

forgottosave/snash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

What is snash

Snash is my recreation of the popular game snake, but using only the programming language bash, that you can run in your linux command line. This project helped me get started with a bit more advanced bash in 2022, which is probably the reason why this might not be the most beautiful bash code style you've ever seen, but it works completely fine :) It also was a lot of fun to use to set up my first own git-project with license and everthing. Hello Open Source :D

Install and Run

  1. Make sure to download all the files, including the resource folder. The easiest way is just to clone this repository:
git clone https://github.com/forgottosave/snash.git; cd snash
  1. Make sure the snash.sh file is executable
chmod +x snash.sh
  1. Run the game as you would run any bash file
./snash.sh

How to Play

You find the general information when adding the flag -h when executing the program. Still here are some explanations:

Goal

  • Get your highest score possible.
  • Eat apples (green O) to get more points. Letting them rot (not eating them in time) results in minus points.
  • Don't run into yourself or into a wall, it'll kill you ;)
  • Have fun!

Control

  • During game: Change direction with w,a,s,d (or vim-h,j,k,l)
  • Before game: Change difficulty with the option -d <number>, where number can be any positive value (although 1-10 is recommended). Not providing the difficulty sets it to the default (5).

About

The popular game snake completely programmed in bash... snash

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages