{"id":26448646,"url":"https://github.com/printfer/snake-game","last_synced_at":"2025-10-16T17:32:45.881Z","repository":{"id":155723739,"uuid":"631791771","full_name":"printfer/snake-game","owner":"printfer","description":"snake, a free and open-source modern implementation of the beloved classic game. The project utilizes the ncurses library in C to provide a sleek terminal environment for an immersive and enjoyable gaming experience. Effortlessly control the snake with arrow keys or vim-like keys (h, j, k, l).","archived":false,"fork":false,"pushed_at":"2023-04-26T01:38:09.000Z","size":77,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T14:44:22.750Z","etag":null,"topics":["game","snake","snake-game"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/printfer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-24T04:15:11.000Z","updated_at":"2025-01-17T03:00:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"3260509c-3bf4-4ee9-ae5d-c2238e937bba","html_url":"https://github.com/printfer/snake-game","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/printfer/snake-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/printfer%2Fsnake-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/printfer%2Fsnake-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/printfer%2Fsnake-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/printfer%2Fsnake-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/printfer","download_url":"https://codeload.github.com/printfer/snake-game/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/printfer%2Fsnake-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273983040,"owners_count":25202092,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["game","snake","snake-game"],"created_at":"2025-03-18T14:35:18.709Z","updated_at":"2025-10-16T17:32:45.805Z","avatar_url":"https://github.com/printfer.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snake\n\n[`snake`](https://github.com/printfer/snake-game), a free and open-source modern implementation of the beloved classic game. The project utilizes the ncurses library in C to provide a sleek terminal environment for an immersive and enjoyable gaming experience. Effortlessly control the snake with arrow keys or vim-like keys (h, j, k, l).\n\n![Snake Game](demo.gif)\n\n## Features\n\n- Intuitive controls using arrow keys or vim-like keys (h, j, k, l)\n- Random food generation for a more captivating and unpredictable gaming experience\n- Random initial direction for the snake, adding variety to each game session\n- Score tracking to challenge yourself and improve your skills\n- Smooth and intuitive terminal UI for seamless control\n\n## Getting Started\n\n### Prerequisites\n\n- GCC (GNU Compiler Collection)\n- ncurses library\n\n### Installing\n\nTo install the ncurses library on Ubuntu or Debian-based systems, run:\n\n```bash\nsudo apt-get install libncurses-dev\n```\n\nOn Fedora, CentOS or RHEL-based systems, run:\n\n```bash\nsudo dnf install ncurses-devel\n```\n\nOn Arch Linux or Arch-based systems, run:\n\n```bash\nsudo pacman -S ncurses\n```\n\n### Compiling and Running\n\nTo run the program directly, navigate to the project directory and execute the following command, which will handle the build process for you:\n\n```bash\nmake run\n```\n\nAlternatively, you can manually compile the program first by running:\n\n```bash\nmake\n```\n\nAfter compiling, the build directory will be located under `build`, and the binary under `bin`. You can then run the program using the following command:\n\n```bash\n./bin/snake\n```\n\n## Contributing\n\nWe welcome contributions from the community! If you'd like to contribute to the project, please follow these steps to set up the development environment:\n\n- Install the necessary dependencies mentioned in the [\"Installing\"](#installing) section.\n- Clone the repository and navigate to the project directory.\n- Run the `./setup.sh` script to set up the development environment.\n\nOnce you have set up the development environment, you can start making changes to the codebase. After making your changes, be sure to test your updates by compiling and running the project as described in the [\"Compiling and Running\"](#compiling-and-running) section.\n\nWhen you're ready to submit your changes, create a pull request, and we will review your contribution.\n\n## Changelog\n\nFor the complete changelog, see the [CHANGELOG.md](CHANGELOG.md) file.\n\n## License\n\n[![](https://www.gnu.org/graphics/gplv3-with-text-136x68.png)](https://www.gnu.org/licenses/gpl-3.0.html)\n\nThis project is licensed under the GPLv3 License. See the [LICENSE](LICENSE) file for more information.\n\n## Credits\n\n[`snake`](https://github.com/printfer/snake-game) has been designed and created by [Printfer](https://printfer.github.io/) with :heart:\n\nCopyright © 2023 [Printfer](https://github.com/printfer)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprintfer%2Fsnake-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprintfer%2Fsnake-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprintfer%2Fsnake-game/lists"}