Coder Social home page Coder Social logo

shnake's Introduction

SHNAKE

Simple for-fun project of the classic snake game implemented in POSIX shell script.


Resources



Why POSIX Shell?

Why not, my friend! Sometimes, you just gotta shell-ebrate simplicity.



Features

  • Random fruit generation
  • Snake grow longer when eat the fruit
  • Full Collition detection
  • Simple interface with score counting
  • Configurable target FPS


Demo

Demo



Tested Shells

  • Zsh
  • Bash
  • Dash
  • Termux


Compatibility and Dependencies

This shell script is designed to be POSIX compatible, following the standards set by the POSIX specification. This means that it should run on any POSIX-compliant shell, which includes most Unix-like systems.

Dependencies

However, while the script adheres to POSIX standards, there are a few commands used that are not guaranteed to be available on all operating systems and you may need to install:

  • bc: The script uses bc (basic calculator) for performing precise floating-point arithmetic calculations. While bc is POSIX-defined and commonly available, it might not be installed on some minimal or specialized environments.

  • tput: The script uses tput to control terminal colors and cursor movement, enhancing the visual aspect of the game. Like bc, tput is POSIX-defined but might be missing on certain systems, especially headless or minimal installations.



How To Play

  1. Clone the repository.
  2. Open your terminal and navigate to the directory where the script is located.
  3. Make sure you have execute permissions for the script: chmod +x main.sh.
  4. Run the game: ./main.sh.


License

This game is released under the Zero-Clause BSD license. Feel free to use, modify, and distribute this software for any purpose with or without fee. The software comes "as is," and the author disclaims all warranties regarding its use. The author shall not be liable for any damages resulting from the use or performance of this software.

shnake's People

Contributors

mr-ema 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.