{"id":24156294,"url":"https://github.com/dolfost/snake-cpp","last_synced_at":"2025-09-20T00:32:46.747Z","repository":{"id":153308032,"uuid":"624575222","full_name":"Dolfost/snake-cpp","owner":"Dolfost","description":"An Clang ncurses snake game","archived":false,"fork":false,"pushed_at":"2025-01-08T18:47:59.000Z","size":7751,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T18:48:44.523Z","etag":null,"topics":["c","cpp","game","ncurses","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dolfost.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-04-06T19:24:34.000Z","updated_at":"2024-11-08T21:33:27.000Z","dependencies_parsed_at":"2024-01-01T23:26:46.826Z","dependency_job_id":"8b5c16c7-ad7c-4170-8d9a-b44f2ee5c5ce","html_url":"https://github.com/Dolfost/snake-cpp","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dolfost%2Fsnake-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dolfost%2Fsnake-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dolfost%2Fsnake-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dolfost%2Fsnake-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dolfost","download_url":"https://codeload.github.com/Dolfost/snake-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233606355,"owners_count":18701616,"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":["c","cpp","game","ncurses","snake","snake-game"],"created_at":"2025-01-12T13:16:31.936Z","updated_at":"2025-09-20T00:32:40.662Z","avatar_url":"https://github.com/Dolfost.png","language":"C++","readme":"# snake-cpp\n\nHello and welcome to the home of the ncurses snake game written in [neovim][nvim] by one enthusiast in his spare time!\n\n### Game features\n- [x] Speed\n- [x] Performance\n- [x] Beauty\n- [x] Portability\n- [x] Tries to be *POSIX-compliant*\n- [x] \"Window\" system\n- [x] Game itself\n- [x] Scoreboard\n- [x] Help window\n- [x] Log windows\n- [x] Terminal options\n\n## Screenshots\n![Pause](screenshots/gamepause.png \"Pause\") | ![Game over](screenshots/over.png \"Game over\") \n:---:|:---:\n![Standby](screenshots/standby.png \"Standby\") | ![Scoreboard](screenshots/scoreboard.png \"Scoreboard\") \n![Help](screenshots/help.png \"Help\") | ![Log](screenshots/log.png \"Log\")\n\n![Sidelog](screenshots/sidelog.png \"Sidelog\")\n\n\n## How to install\n### Installing dependencies\nGame relies on the\n - [newcurses][ncurses] C library, likely You will have to install it on Your machine.\n - [cmake][cmake] program. \n##### Mac OS\nIf You use MacOS You can install [newcurses][ncurses] with [homebrew][brew] simply by\n\n    brew install ncurses\n\n##### Unix-like OS\nShort answer: _It depends._  \nFor example, if You are using Ubuntu You can install [newcurses][ncurses] and\n[g++][compiler] by\n\n    sudo apt-get install libncurses5-dev libncursesw5-dev clang\n\nIf You say _I use Arch btw_ often, You can try\n\n    sudo pacman -S ncurses g++\n\nIf Your distro isn't mentioned here, try to use [google](https://www.google.com):\n\n    how to install ncurses in *put Your distro name here*\n\n    how to install g++ in *put Your distro name here*\n\n    how to get cmake running on *put Your distro name here*\n\n### Getting the sources\nEnter desired directory and run \n\n    git clone https://github.com/Dolfost/snake-cpp\n    cd snake-cpp\n\nIt will create the directory with name `snake-cpp` and enter it. Then You have\nto compile the game.\n\n### Compiling the game\nTo build the game You can:\n\n    cmake -B build; cmake --build build\n    ./build/src/snakegame\n\nIt will create the game executable `snakegame` in the `build/src` directory.\n\n## Running the game\n- Open the terminal window not smaller than 42 lines by 80 columns\n- To start the game You can execute\n    ```\n    ./build/src/snakegame\n    ```\n    in the git directory root. \n\n    If You are new to the game (probably You are), I recommend You to start\n    game with the `--help` or `-h` option, so You can get used to it.\n    ```\n    ./build/src/snakegame --help\n    ```\nGame files will be located in `../var` relative to game executable \n(`build/var` if following this guide).\n\n## Contributing\nIf You find any bugs or unexpected behaviors or just want to\ncontribute to the snake-cpp, You are welcome at the [issues tab][issue].\n\n\n\n[nvim]: https://github.com/neovim/neovim \"Go to nvim github page\"\n[ncurses]: https://en.wikipedia.org/wiki/Ncurses \"Go to ncurses wikipedia page\"\n[brew]: https://brew.sh \"Visit homebrew homepage\"\n[issue]: https://github.com/Dolfost/snake-cpp/issueso \"Go to issues tab\"\n[cmake]: https://en.wikipedia.org/wiki/CMake \"Go to CMake wikipedia page\" \n[compiler]: https://en.wikipedia.org/wiki/GNU_Compiler_Collection \"Go to GNU compiler collection wikipedia page\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolfost%2Fsnake-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolfost%2Fsnake-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolfost%2Fsnake-cpp/lists"}