{"id":21191451,"url":"https://github.com/charakamihiranga/snake-game","last_synced_at":"2026-01-19T09:35:15.498Z","repository":{"id":222686318,"uuid":"752163786","full_name":"charakamihiranga/Snake-Game","owner":"charakamihiranga","description":"A classic Snake game developed using Java and JavaFX.","archived":false,"fork":false,"pushed_at":"2024-08-09T17:59:02.000Z","size":83415,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T10:30:53.269Z","etag":null,"topics":["java","java-swing","javafx","snake-game"],"latest_commit_sha":null,"homepage":"","language":"Java","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/charakamihiranga.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-03T08:01:09.000Z","updated_at":"2024-10-26T05:32:58.000Z","dependencies_parsed_at":"2024-10-26T18:08:17.367Z","dependency_job_id":null,"html_url":"https://github.com/charakamihiranga/Snake-Game","commit_stats":null,"previous_names":["charakamihiranga/snake-game","charakagamage/snake-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/charakamihiranga/Snake-Game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charakamihiranga%2FSnake-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charakamihiranga%2FSnake-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charakamihiranga%2FSnake-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charakamihiranga%2FSnake-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charakamihiranga","download_url":"https://codeload.github.com/charakamihiranga/Snake-Game/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charakamihiranga%2FSnake-Game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["java","java-swing","javafx","snake-game"],"created_at":"2024-11-20T19:03:03.682Z","updated_at":"2026-01-19T09:35:15.485Z","avatar_url":"https://github.com/charakamihiranga.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snake Game\n\n## Description\nSnake Game is a classic arcade game where the player controls a snake that moves around the screen, eating food pellets to grow longer. The game continues until the snake collides with itself or the boundaries of the play area. It's a simple yet addictive game that tests the player's reflexes and strategy.\n\n![Screenshot](src/main/resources/Screenshots/Screenshot%202024-02-21%20132413.png)\n\n\n![Screenshot](src/main/resources/Screenshots/Screenshot%202024-02-21%20132441.png)\n\n\n![Screenshot](src/main/resources/Screenshots/Screenshot%202024-02-21%20132518.png)\n\n\n\n\n## Features\n- Classic snake gameplay with intuitive controls.\n- Increasing difficulty as the snake grows longer.\n- Score tracking to keep track of the player's progress.\n- Sound effects for enhanced gameplay experience.\n- Leaderboard to display top scores.\n\n## Technologies Used\n- JavaFX for the user interface.\n- Java programming language for game logic.\n- Git for version control.\n- IDE: IntelliJ IDEA\n\n## Getting Started\n\n### Prerequisites\n- Java Development Kit (JDK) installed on your system.\n- Git installed on your system (optional).\n- MySQL installed on your system.\n\n### Installation\n1. Clone the repository:\n  git clone https://github.com/CharakaMihiranga/snake-game.git\n\n2. Open the project in your preferred IDE.\n3. Build and run the project.\n\n### Setting Up the Database\n1. Navigate to the `src/main/resources/sql` directory in your project.\n2. Execute the SnakeGame.sql script to create the database schema:\n  mysql -u username -p \u003c SnakeGame.sql\n\n  Replace `username` with your MySQL username. You will be prompted to enter your MySQL password. Alternatively, you can use a MySQL client to execute the script.\n\n## Usage\n- Use arrow keys or WASD keys to control the direction of the snake.\n- Eat food pellets to grow longer.\n- Avoid colliding with the snake's body or the edges of the play area.\n\n## Acknowledgements\nThis project was inspired by the classic Snake game.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharakamihiranga%2Fsnake-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharakamihiranga%2Fsnake-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharakamihiranga%2Fsnake-game/lists"}