{"id":25955350,"url":"https://github.com/forgottosave/snash","last_synced_at":"2026-05-06T15:32:01.129Z","repository":{"id":158149911,"uuid":"583083913","full_name":"forgottosave/snash","owner":"forgottosave","description":"The popular game snake completely programmed in bash... snash","archived":false,"fork":false,"pushed_at":"2024-02-27T21:44:03.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-02-28T14:46:12.945Z","etag":null,"topics":["bash","snake","snake-game"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forgottosave.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-28T18:04:00.000Z","updated_at":"2024-02-28T14:46:12.946Z","dependencies_parsed_at":"2023-07-16T01:02:06.720Z","dependency_job_id":null,"html_url":"https://github.com/forgottosave/snash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forgottosave%2Fsnash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forgottosave%2Fsnash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forgottosave%2Fsnash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forgottosave%2Fsnash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forgottosave","download_url":"https://codeload.github.com/forgottosave/snash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241877478,"owners_count":20035417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","snake","snake-game"],"created_at":"2025-03-04T16:18:57.827Z","updated_at":"2026-05-06T15:32:01.123Z","avatar_url":"https://github.com/forgottosave.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- ![image](https://user-images.githubusercontent.com/88790311/209857426-c4af40b6-f6e4-4148-89a0-8e019f0ed1e5.png) --\u003e\n\u003cimg width=\"460\" height=\"136\" alt=\"image\" src=\"https://github.com/user-attachments/assets/68d60e2a-7a58-4e44-93eb-b920357cf429\" /\u003e\n\n**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.\nThis 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\n\n## Install and Run\n1. Make sure to download all the files, including the resource folder. The easiest way is just to clone this repository:\n```\ngit clone https://github.com/forgottosave/snash.git; cd snash\n```\n2. Make sure the `snash.sh` file is executable\n```\nchmod +x snash.sh\n```\n3. Run the game as you would run any bash file\n```\n./snash.sh\n```\n## How to Play\n\nYou find the general information when adding the flag `-h` when executing the program. Still here are some explanations:\n\n**Goal**\n  - Reach the highest score possible.\n  - Eat apples (green O) to get more points. Letting them rot (not eating them in time) results in minus points.\n  - Don't run into yourself or into a wall, it'll kill you ;)\n  - Have fun!\n\n**Control**\n  - During game: Change direction with w,a,s,d (or vim-h,j,k,l)\n  - Before game: Change difficulty with the option `-d \u003cnumber\u003e`, where number can be any positive value (although 1-10 is recommended). Not providing the difficulty sets it to the default (5).\n  - Also try the in-terminal mode... you can eat through your whole screen :)\n\n## Gallery\n**Default Mode**\n\u003cimg width=\"266\" height=\"246\" src=\"https://github.com/user-attachments/assets/a09085f2-d937-404d-a7b0-2655c3d506a0\" /\u003e\n\n**In-Terminal Mode**\n\u003cimg width=\"635\" height=\"469\" alt=\"image\" src=\"https://github.com/user-attachments/assets/c8e58c90-84d9-4cb6-bbff-426a72d05144\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforgottosave%2Fsnash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforgottosave%2Fsnash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforgottosave%2Fsnash/lists"}