wick3dr0se / snake Goto Github PK
View Code? Open in Web Editor NEW:snake: A super minimal TUI snake game written in pure BASH v5.1+
License: GNU General Public License v3.0
:snake: A super minimal TUI snake game written in pure BASH v5.1+
License: GNU General Public License v3.0
If you go in a circle, you simply will not die. In fact, there is no way to die in this game exactly.
Additionally, if you are facing up then you are able to change direction directly to down, which isn't possible in normal snake.
On my Mac running MacOS Monterey 12.5.1 using terminal, installing with:
git clone https://github.com/wick3dr0se/snake && cd ${_##*/}
...then running with
bash snake.sh
...it only shows one line at the top of the terminal window, which doesn't move, but does extend to the right if you move right.
On RHEL8.6 (4.18.0-372.16.1.el8_6.x86_64), performing the same steps in a terminal window results in the full game "world" showing, but the snake doesn't move, and only extends itself as you press the movement keys h,j,k,l. The game does not end if you run into yourself, or the wall, and there are no items to pick up to extend the length of the snake, or obstacles to risk running into.
bash version on MacOS I used:
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21)
bash version on RHEL8.6:
GNU bash, version 4.4.20(1)-release (x86_64-redhat-linux-gnu)
Bash version: 5.1.16
Snake seems to move very slow, around two seconds per frame it seems.
Whenever I press the exact opposite direction than my snake is currently moving, I get immediate game over. This is somewhat annoying when I mispress a button, and makes sharp 180s and zig-zags much harder to pull off.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.