{"id":16321550,"url":"https://github.com/beardedfish/snake","last_synced_at":"2026-05-02T03:05:40.380Z","repository":{"id":123995393,"uuid":"266189875","full_name":"BeardedFish/Snake","owner":"BeardedFish","description":"Snake game programmed in Java using Swing. 🐍","archived":false,"fork":false,"pushed_at":"2023-07-12T04:55:57.000Z","size":177,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T09:13:32.768Z","etag":null,"topics":["classic-game","food","game","high-score","io","java","maven","painting","panel","scoring-system","snake","swing","wasd"],"latest_commit_sha":null,"homepage":"https://www.darianbenam.com/download-preview.php?id=3","language":"Java","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/BeardedFish.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":"2020-05-22T19:19:02.000Z","updated_at":"2023-11-10T17:25:40.000Z","dependencies_parsed_at":"2023-07-16T06:00:50.294Z","dependency_job_id":null,"html_url":"https://github.com/BeardedFish/Snake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BeardedFish/Snake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeardedFish%2FSnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeardedFish%2FSnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeardedFish%2FSnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeardedFish%2FSnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeardedFish","download_url":"https://codeload.github.com/BeardedFish/Snake/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeardedFish%2FSnake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32521113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["classic-game","food","game","high-score","io","java","maven","painting","panel","scoring-system","snake","swing","wasd"],"created_at":"2024-10-10T22:48:06.944Z","updated_at":"2026-05-02T03:05:40.332Z","avatar_url":"https://github.com/BeardedFish.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snake 🐍\n\nThis is a snake game programmed in Java. The code for this game was written using an object-oriented programming approach and the UI was created using [Swing](https://en.wikipedia.org/wiki/Swing_(Java)) components.\n\n## How to Build\n\nAssuming [Java](https://www.java.com/en/) and [Apache Maven](https://maven.apache.org/) are installed, run the following command in the project's root directory:\n\n```shell\nmvn clean install\n```\n\n### How to Run\n\nAfter building the project, run the following commands in the project's root directory:\n\n```shell\ncd target\njava -jar java-snake-v1.1.0.jar\n```\n\n## How to Play\n\nThe goal of the game is to navigate the snake's head to the food piece on the game map. Every time a food is eaten by the snake, the score is increased by `15` points. Additionally, the snake grows one unit longer and also a new food piece is generated at a random coordinate where the snake is not located. Beware though! If the snake's head goes out of bounds or intersects with its body then it's game over.\n\nThe controls for the game are:\n\n| Key(s)                       | Action                                           |\n| ---------------------------- | ------------------------------------------------ |\n| \u003ckbd\u003e↑\u003c/kbd\u003e or \u003ckbd\u003eW\u003c/kbd\u003e | Changes the snake's movement direction to up.    |\n| \u003ckbd\u003e←\u003c/kbd\u003e or \u003ckbd\u003eA\u003c/kbd\u003e | Changes the snake's movement direction to left.  |\n| \u003ckbd\u003e↓\u003c/kbd\u003e or \u003ckbd\u003eS\u003c/kbd\u003e | Changes the snake's movement direction to down.  |\n| \u003ckbd\u003e→\u003c/kbd\u003e or \u003ckbd\u003eD\u003c/kbd\u003e | Changes the snake's movement direction to right. |\n| \u003ckbd\u003eSpacebar\u003c/kbd\u003e          | Starts the game if it hasn't been started yet.   |\n| \u003ckbd\u003eP\u003c/kbd\u003e                 | Pauses/unpauses the game.                        |\n\n## Screenshots\n\n![Game that hasn't been started](screenshots/screenshot1.png \"Game that hasn't been started\")\n![Game over](screenshots/screenshot2.png \"Game over\")\n![Game paused](screenshots/screenshot3.png \"Game paused\")\n![High score window](screenshots/screenshot4.png \"High score window\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeardedfish%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeardedfish%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeardedfish%2Fsnake/lists"}