{"id":13441126,"url":"https://github.com/taylorconor/quinesnake","last_synced_at":"2026-01-25T15:36:47.026Z","repository":{"id":78369386,"uuid":"183479711","full_name":"taylorconor/quinesnake","owner":"taylorconor","description":"A quine that plays snake over its own source!","archived":false,"fork":false,"pushed_at":"2019-07-27T22:53:09.000Z","size":223,"stargazers_count":914,"open_issues_count":1,"forks_count":57,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-08-01T03:33:16.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taylorconor.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}},"created_at":"2019-04-25T17:24:17.000Z","updated_at":"2024-07-21T02:19:39.000Z","dependencies_parsed_at":"2023-04-23T13:01:58.500Z","dependency_job_id":null,"html_url":"https://github.com/taylorconor/quinesnake","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/taylorconor%2Fquinesnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylorconor%2Fquinesnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylorconor%2Fquinesnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taylorconor%2Fquinesnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taylorconor","download_url":"https://codeload.github.com/taylorconor/quinesnake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221752299,"owners_count":16874955,"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-07-31T03:01:30.227Z","updated_at":"2026-01-25T15:36:47.020Z","avatar_url":"https://github.com/taylorconor.png","language":"C++","funding_links":[],"categories":["C++","Computing"],"sub_categories":[],"readme":"# quinesnake\nA quine that plays snake over its own source!\n\n![quinesnake gif](animation.gif)\n\n### How to run it\nThe program compiles itself; to run it first make the source file executable\n(`chmod +x quinesnake.cpp`), then run it with `./quinesnake.cpp`. It invokes\n`g++` on itself and then starts the game.\n\nThe snake is controlled with `w`, `a`, `s` and `d`.\n\nNote: some people have reported issues where the snake and food appear black\nin their terminals. This is likely due to the value of the environments\n`TERM` variable. You can try run the program with:\n```\nTERM=xterm-256color ./quinesnake.cpp\n```\nThis will tell curses that your terminal supports the high-intensity colour\nrange used by quinesnake.\n\n### quinesnake.cpp\nThis is the quine version that also compiles itself and plays snake over its\nown source. It requires:\n- libcurses\n- Some binary called `g++` needs to exist (tested with GCC and Clang)\n- `/bin/ls` needs to exist and be executable\n\n### quinesnake-commented.cpp\nThis version of the program isn't a quine and doesn't compile itself, but it\nhas all of the basic game-playing logic that the real version has, plus it's\ncommented and readable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaylorconor%2Fquinesnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaylorconor%2Fquinesnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaylorconor%2Fquinesnake/lists"}