{"id":20687861,"url":"https://github.com/cribbles/snake","last_synced_at":"2026-04-17T16:31:45.369Z","repository":{"id":94979334,"uuid":"41981218","full_name":"cribbles/snake","owner":"cribbles","description":"JavaScript remake of the Nokia classic","archived":false,"fork":false,"pushed_at":"2015-10-14T12:13:04.000Z","size":276,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T23:59:04.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/cribbles.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}},"created_at":"2015-09-06T01:00:39.000Z","updated_at":"2022-06-09T05:30:31.000Z","dependencies_parsed_at":"2023-03-12T15:00:57.841Z","dependency_job_id":null,"html_url":"https://github.com/cribbles/snake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cribbles/snake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cribbles","download_url":"https://codeload.github.com/cribbles/snake/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fsnake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31936546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-16T22:58:29.429Z","updated_at":"2026-04-17T16:31:45.343Z","avatar_url":"https://github.com/cribbles.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snake.js\n\n[Live](http://chrissloop.com/snake)\n\n## Summary\n\nThis is a remake of the classic Snake arcade game using JavaScript, jQuery and\nCSS. I added a twist by including a computer AI that competes for apples.\n\n## Features\n\n- JavaScript and jQuery back-end, HTML/CSS front-end\n- Implements core gameplay using events handling and DOM manipulation\n- Smooth rendering engine only redraws changing portions of the screen\n\n## How It Works\n\nThe Computer AI calculates its next move by sorting the adjacent cardinal\ncoordinates of its 'head' according to their distance from the apple, using the\n[Manhattan method](https://en.wikipedia.org/wiki/Taxicab_geometry) as a\nheuristic. It doesn't evaluate unsafe coordinates, i.e. ones that would cause it\nto run into itself, out of range, or into another player.\n\nThe board is rendered in pure HTML/CSS. The rendering engine works by applying\n`$.removeClass` and `$.addClass` to dynamic elements (the apple and snakes) in\nsync with player movement. This keeps the animation smooth, even as the game speeds up.\n\n## License\n\nSnake.js is released under the [MIT License](/LICENSE).\n\n---\nDeveloped by [Chris Sloop](http://chrissloop.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcribbles%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcribbles%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcribbles%2Fsnake/lists"}