{"id":13715905,"url":"https://github.com/alexdantas/nSnake","last_synced_at":"2025-05-07T05:31:44.056Z","repository":{"id":2314955,"uuid":"3275095","full_name":"alexdantas/nSnake","owner":"alexdantas","description":"The classic snake game with textual interface","archived":false,"fork":false,"pushed_at":"2023-09-27T07:13:58.000Z","size":2568,"stargazers_count":202,"open_issues_count":23,"forks_count":58,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-06T02:03:36.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://nsnake.alexdantas.net","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/alexdantas.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-01-26T16:09:19.000Z","updated_at":"2025-04-13T06:02:11.000Z","dependencies_parsed_at":"2024-08-01T13:15:55.170Z","dependency_job_id":null,"html_url":"https://github.com/alexdantas/nSnake","commit_stats":{"total_commits":251,"total_committers":7,"mean_commits":"35.857142857142854","dds":"0.29083665338645415","last_synced_commit":"d018237c22beabb99ec727e73c3e04e580edcebf"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexdantas%2FnSnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexdantas%2FnSnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexdantas%2FnSnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexdantas%2FnSnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexdantas","download_url":"https://codeload.github.com/alexdantas/nSnake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823001,"owners_count":21809700,"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":[],"created_at":"2024-08-03T00:01:04.922Z","updated_at":"2025-05-07T05:31:40.891Z","avatar_url":"https://github.com/alexdantas.png","language":"C++","funding_links":[],"categories":["CLI","\u003ca name=\"games\"\u003e\u003c/a\u003eGames","Table of Contents"],"sub_categories":[],"readme":"# nsnake\n\nClassic snake game on the terminal; made with C++ and ncurses.\n\n![menu](http://nsnake.alexdantas.net/img/arcade-menu.png)\n![menu](http://nsnake.alexdantas.net/img/small-maze.png)\n![menu](http://nsnake.alexdantas.net/img/large-maze-with-lots-of-fruits.png)\n\n`nsnake` is a clone of the classic snake game that we all used to\nplay on our cellphones. You play this game on the terminal,\nwith textual interface.\n\nHere's some features:\n\n* Customizable gameplay, appearance and key bindings\n* GUI-like interface with nice animations\n* Levels - create your own [easily][level_wiki];\n* Lots of possible game modes; teleport, scroll map, random walls,\n  etc. Scores are saved for each setting.\n\n## Controls\n\nThe keybindings are completely customizable on the in-game menus.\nThe default ones are:\n\n| Keys              | Actions                    |\n| ----------------- | -------------------------- |\n| Arrow Keys        | Moves the snake            |\n| q                 | Quits the game at any time |\n| p                 | Pauses/Unpauses the game   |\n| h                 | Show help during game      |\n\nAll user settings are located at `~/.local/share/nsnake`.\n\n## Levels\n\nnSnake looks out for level files on `~/.local/share/nsnake/levels`. By default\nit installs stock levels on `/usr/share/games/nsnake/levels`, so make sure to\ncopy them before playing.\n\nLevels have a `.nsnake` extension and are simple text files.  The file\nformat is very easy to edit; check out [the wiki][level_wiki] for a quick guide.\n\n## Dependencies\n\nnSnake only depends on `ncurses`; it's used to show cute things on the terminal.\n\nMake sure you have the package *ncurses dev*. Note that it's _not_ the default\nthat comes with your distro.\n\n| Distro         | Installation command              |\n| -------------- | --------------------------------- |\n| Ubuntu/Debian  | `apt-get install libncurses5-dev` |\n| Fedora         | `yum install ncurses-devel`       |\n| Arch Linux     | _comes by default_                |\n\nIf you know the means to install on other distros, [please tell me][issues].\n\n## Usage\n\nBriefly, the following shell commands should configure,\nbuild and install this package on the default directories:\n\n    $ make\n    $ [sudo] make install\n\nIf you want to test it before installing, do:\n\n    $ make run\n\nThen, it's simple:\n\n\t$ man nsnake\n\t$ nsnake\n\nCheck file `INSTALL.md` for more info.\n\n## Contact\n\nHello there, I'm Alexandre Dantas (kure)!\n\nThanks for downloading and playing this game, I'm very glad you had\ninterest on this humble project.\n\nYou can send me comments, bugs, ideas or anything else by email.\nAnd if you have time, please visit my blog!\n\n* My email:      \u003ceu@alexdantas.net\u003e\n* My homepage:   http://alexdantas.net/\n* Mu blog:       http://alexdantas.net/stuff\n\nI'd appreciate any commentary - even if it's\njust _\"Hello, I play your game!\"_.\n\n## Links\n\nSome interesting links if you're interested on nsnake:\n\n* [nSnake homepage][home]\n* [Up-to-date nsnake news][news] ([RSS feed][rss])\n\nAlso, it's all over the web!\n\n* [Source on GitHub][github]\n* [Source on Bitbucket][bitbucket]\n* [Source on Sourceforge][sourceforge]\n* [Source on Google Code][googlecode]\n* [Source on Gitcafe][gitcafe]\n* [Package on Debian](https://tracker.debian.org/pkg/nsnake)\n* [Package on Fedora](https://apps.fedoraproject.org/packages/nsnake)\n* [Package on Arch Linux (AUR)](https://aur.archlinux.org/packages/nsnake/)\n* [Package on Slackware (SlackBuilds)](http://slackbuilds.org/repository/14.1/games/nSnake/)\n\n## Credits\n\nFirstly, I'd like to thank you for playing this game.\nHope you liked it!\n\nThe game was mainly done by me, but a lot of people helped me in\nmany ways. There's a list of them on the `AUTHORS` file, and you\ncan see people's [contributions to the code here][contrib].\n\nThroughout the nsnake development, I found very interesting sources\nof ideas; small games made in C, textual games with ncurses, and\nstuff like that.\n\nI raise my hat to:\n\n* *nInvaders*: A space invaders-like game using ncurses.\n  * homepage: http://ninvaders.sourceforge.net\n  * comments: \"Thanks for the inspiration. If I haven't installed\n               this in first place, I'd never have the idea\n\t\t\t   for nsnake\"\n\n* *pacman4console*: A console-based pacman game.\n  * homepage:  http://doctormike.googlepages.com/pacman.html\n  * comments:  \"The way this package was organized\n                    is incredible. Thanks for the\n                    general packaging ideas\"\n\n* *vadorz*: An addicting ncurses space-invaders game.\n  * homepage: http://code.google.com/p/vadorz/\n  * comments: \"This package is awesome, 'cause it uses ncurses\n               AND pdcurses to be able to play in Windows and\n\t\t\t   GNU/Linux\"\n\n* *snake4*: Fruit-eating snake game\n  * homepage: http://shh.thathost.com/\n  * comments: \"Thanks for the Makefile ideas. It's\n               very well-written.\"\n\n* *ASCII Generator*: A generator of awesome ASCII text arts\n  * homepage:  http://www.network-science.de/ascii/\n\n* *Text ASCII Art Generator*: Another awesome ASCII text generator\n  * homepage:  http://patorjk.com/software/taag/\n  * comments:  \"I've used the Modular font to display\n                the Game Over screen\"\n\n## License\n\n nsnake - The classic snake game with ncurses.\n Copyright (C) 2011,2014  Alexandre Dantas\n\n nsnake is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n\n homepage: http://www.alexdantas.net/projects/nsnake/\n mailto:   eu@alexdantas.net\n\n[issues]:      https://github.com/alexdantas/nSnake/issues\n[home]:        http://nsnake.alexdantas.net/\n[news]:        http://alexdantas.net/stuff/posts/category/projects/nsnake/\n[rss]:         http://alexdantas.net/stuff/posts/category/projects/nsnake/feed/\n[github]:      https://github.com/alexdantas/nsnake\n[bitbucket]:   https://bitbucket.org/alexdantas/nsnake\n[sourceforge]: https://sourceforge.net/projects/nsnake/\n[gitcafe]:     https://gitcafe.com/alexdantas/nsnake\n[googlecode]:  http://code.google.com/p/nsnake/\n[contrib]:     https://github.com/alexdantas/nSnake/graphs/contributors\n[level_wiki]:  https://github.com/alexdantas/nSnake/wiki/How-to-create-your-own-levels\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdantas%2FnSnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexdantas%2FnSnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdantas%2FnSnake/lists"}