Code Monkey home page Code Monkey logo

snash's Introduction

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).

snash's People

Contributors

forgottosave avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.