{"id":18982458,"url":"https://github.com/saquib-dev/A-Snake-Game","last_synced_at":"2026-04-11T19:30:19.820Z","repository":{"id":179028644,"uuid":"662736513","full_name":"Hack-way/A-Snake-Game","owner":"Hack-way","description":"The Snake Game is a classic arcade game where the player controls a snake that moves around the game board, eating food and growing longer. The goal is to avoid colliding with walls, obstacles, or the snake's own body. The game ends when the snake collides with any of these obstacles.","archived":false,"fork":false,"pushed_at":"2023-07-05T19:21:41.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T11:42:34.570Z","etag":null,"topics":["a-snake","game","hackway","player","snake","snake-game"],"latest_commit_sha":null,"homepage":"https://hackway.w3spaces.com/index.html","language":"JavaScript","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/Hack-way.png","metadata":{"files":{"readme":"README.md","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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-05T19:19:36.000Z","updated_at":"2023-07-05T19:24:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"fcf5b7d0-7994-4e88-8765-f71500562942","html_url":"https://github.com/Hack-way/A-Snake-Game","commit_stats":null,"previous_names":["hack-way/a-snake-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hack-way%2FA-Snake-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hack-way%2FA-Snake-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hack-way%2FA-Snake-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hack-way%2FA-Snake-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hack-way","download_url":"https://codeload.github.com/Hack-way/A-Snake-Game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239987090,"owners_count":19729743,"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":["a-snake","game","hackway","player","snake","snake-game"],"created_at":"2024-11-08T16:13:36.774Z","updated_at":"2026-04-11T19:30:19.725Z","avatar_url":"https://github.com/Hack-way.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A-Snake-Game with @Hackway\nThe Snake Game is a classic arcade game where the player controls a snake that moves around the game board, eating food and growing longer. The goal is to avoid colliding with walls, obstacles, or the snake's own body. The game ends when the snake collides with any of these obstacles.\n\n## How to Play\nOpen the index.html file in a web browser.\nClick the \"Start Game!\" button to begin.\nControl the snake's movement using the arrow keys or by swiping on mobile devices.\nGuide the snake to eat the red food items to score points and increase its length.\nAvoid colliding with walls, obstacles, or the snake's own body.\nThe game ends when the snake collides with an obstacle, and your final score will be displayed.\nClick the \"Start Game!\" button again to play a new game.\n\n## Features\nThe snake moves in a continuous manner, and the player can change its direction using keyboard arrow keys or by swiping on touch devices.\nThe game includes randomly generated food items for the snake to eat and score points.\nThe snake grows longer each time it eats food.\nThe game ends if the snake collides with walls or obstacles, or if it collides with its own body.\nThe player's score is displayed during gameplay.\nThe game offers three levels of difficulty: easy, medium, and hard. The speed of the snake increases with higher difficulty levels.\nThe game is responsive and can be played on both desktop and mobile devices.\n\n## Game Customization\nIf you want to customize the game, you can make changes to the following parts of the code:\n\nobstacles array: You can modify the obstacles array to add or remove obstacles from the game board. Each obstacle object should have x and y properties representing its position.\nspeed variable: You can adjust the speed of the snake by changing the speed value in milliseconds. A lower value makes the game faster, while a higher value makes it slower.\nCSS styles: You can modify the CSS code to change the appearance of the game board, snake, food, and other elements.\nFeel free to experiment and make the game your own!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaquib-dev%2FA-Snake-Game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaquib-dev%2FA-Snake-Game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaquib-dev%2FA-Snake-Game/lists"}