{"id":28990513,"url":"https://github.com/raphgl/cnake","last_synced_at":"2025-06-25T00:11:51.328Z","repository":{"id":119897333,"uuid":"586648162","full_name":"RaphGL/Cnake","owner":"RaphGL","description":"Terminal snake game in C11 and C++20","archived":false,"fork":false,"pushed_at":"2024-11-11T17:58:18.000Z","size":315,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-11T18:39:43.725Z","etag":null,"topics":["game","terminal-game","tui"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaphGL.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-01-08T21:17:46.000Z","updated_at":"2024-11-11T17:58:21.000Z","dependencies_parsed_at":"2024-11-11T18:31:37.048Z","dependency_job_id":null,"html_url":"https://github.com/RaphGL/Cnake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RaphGL/Cnake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphGL%2FCnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphGL%2FCnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphGL%2FCnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphGL%2FCnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaphGL","download_url":"https://codeload.github.com/RaphGL/Cnake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphGL%2FCnake/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261777776,"owners_count":23208130,"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":["game","terminal-game","tui"],"created_at":"2025-06-25T00:11:45.988Z","updated_at":"2025-06-25T00:11:51.239Z","avatar_url":"https://github.com/RaphGL.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cnake\nThis project constains 2 versions of the game.\nA legacy version in C11 and a new version in C++20. \nNone is better than the other, they're simply different flavors of the same game (the C++ one is partially a rewrite).\n\n![Screenshot from 2023-07-16 19-29-32](https://github.com/RaphGL/Cnake/assets/28673457/80bd075e-de33-4295-a3b1-85b0acc48cfc)\n![Screenshot from 2023-07-16 19-31-34](https://github.com/RaphGL/Cnake/assets/28673457/72ff51a2-4be2-4632-966a-bdcec8c4a575)\n![Screenshot from 2023-07-16 19-31-40](https://github.com/RaphGL/Cnake/assets/28673457/9dbb33ab-66bb-4e54-8ac0-65a3904341ad)\n\n# How to compile\nBuild dependencies:\n- CMake (build system)\n- Ncurses (library)\n- A compiler with C++20 support\n\n```sh\n$ cmake . -DCMAKE_BUILD_TYPE=Release\n$ make\n```\n\nAfter compiling you'll have a `cnake` for the C11 version and a `cnakepp` for the C++20 version.\n\n# Controls\nMove with WASD or the arrows keys  \nPress `p` to pause  \nStay pressed to go faster  \n\nThe game can be quit with `ctrl + c` or through the pause menu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphgl%2Fcnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphgl%2Fcnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphgl%2Fcnake/lists"}