{"id":13523202,"url":"https://github.com/troglobit/snake","last_synced_at":"2025-03-18T22:31:28.986Z","repository":{"id":989944,"uuid":"797147","full_name":"troglobit/snake","owner":"troglobit","description":"Micro Snake, based on Simon Huggins snake game.","archived":false,"fork":false,"pushed_at":"2023-04-16T12:54:47.000Z","size":88,"stargazers_count":33,"open_issues_count":0,"forks_count":24,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T12:46:08.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://troglobit.com/snake.html","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/troglobit.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2010-07-25T21:24:31.000Z","updated_at":"2025-01-27T01:56:32.000Z","dependencies_parsed_at":"2024-10-27T19:17:48.566Z","dependency_job_id":"b6adefd8-237c-434e-93bf-2cc159cab0de","html_url":"https://github.com/troglobit/snake","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Fsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Fsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Fsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Fsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/troglobit","download_url":"https://codeload.github.com/troglobit/snake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955176,"owners_count":20374369,"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-01T06:00:56.995Z","updated_at":"2025-03-18T22:31:28.690Z","avatar_url":"https://github.com/troglobit.png","language":"C","funding_links":[],"categories":["\u003ca name=\"games\"\u003e\u003c/a\u003eGames","Table of Contents"],"sub_categories":[],"readme":"Micro Snake\n===========\n\n![ASCII Image of Micro Snake](micro-snake.png \"Play Micro Snake!\")\n\nThe theme started with [Micro Tetris] continues with this version of the\nsnake (worm) game.  It is very small and only utilizes ANSI escape\nsequences to draw the board.  Hence, very suitable for embedded devices.\n\n\nIntroduction\n------------\n\nFrom [Wikipedia](http://en.wikipedia.org/wiki/Snake_%28video_game%29):\n\n\u003e Snake is a video game released during the mid 1970s and has maintained\n\u003e popularity since then, becoming somewhat of a classic.  The first\n\u003e known microcomputer version of Snake, titled 'Worm', was programmed in\n\u003e 1978 by P. Trefonas (USA) on the TRS-80 computer, and published by\n\u003e CLOAD magazine the same year.  This was followed shortly afterwards\n\u003e with versions from the same author for the PET and Apple II computers.\n\u003e A microcomputer port of Hustle was first written by P. Trefonas in\n\u003e 1979 and published by CLOAD magazine [2].  This was later released by\n\u003e Milton Bradley for the TI-99/4A in 1980.\n\n\nPlaying the game\n----------------\n\nThe aim of the game is to collect the gold ($), avoid cactuses (*) and\nborders, including colliding with the tail of the snake itself. As you\ncollect gold, the snake gets longer, thus increasing the likelihood of\ncrashing into yourself.  When all gold has been collected you are hauled\nto the next level without any warning.  For each new level the snake\ngets longer and the amount of gold and cactuses increases.\n\nYou get scored according to the length of the snake and the number of\ncactuses on the screen.  The speed increases every 5 levels.  You get a\nbonus of 1000 points when you complete each level.\n\n**Note:** There is no concept of lives.  Once you hit an obstacle,\nthat's it, game over.\n\nTo move the snake:\n\n    a - Up,\n    z - Down,\n    o - Left\n    p - Right\n    \n    f - Left turn\n    j - Right turn\n    \n    q - Quit the game at any time.\n\nThere is a define in `snake.h` you can change if you want to alter these\nsettings.  Make sure you do not have caps lock on, otherwise the keys\nwill fail to respond.\n\n\nOrigin \u0026 References\n-------------------\n\nMicro Snake is based on an original implementation by [Simon Huggins].\nCurrent maintainer is [Joachim Nilsson].\n\nThe orignal version of the source code is available as the first commit\nof the official Git repository.  Note that Simon's original use library\nfunctions that are not available on all systems -- it was designed using\nBorland C++ Builder / Turbo C.  Most of this has been refactored during\nthe porting effort to GNU/Linux.  There has also been some game design\nchanges to improve the overall feeling.\n\n[Micro Tetris]:    http://github.com/troglobit/tetris\n[Repository]:      http://github.com/troglobit/snake\n[Issue Tracker]:   http://github.com/troglobit/snake/issues\n[Simon Huggins]:   http://github.com/huggyfee\n[Joachim Nilsson]: http://troglobit.com\n[tarball]:         http://troglobit.com/snake/snake-1.0.1.tar.bz2\n[hashfile]:        http://troglobit.com/snake/snake-1.0.1.tar.bz2.md5\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroglobit%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftroglobit%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroglobit%2Fsnake/lists"}