{"id":25721623,"url":"https://github.com/rafaybbx/python-snake-game","last_synced_at":"2026-06-20T09:31:27.919Z","repository":{"id":275691345,"uuid":"926885093","full_name":"rafaybbx/python-snake-game","owner":"rafaybbx","description":"A classic Snake game implementation using Pygame.","archived":false,"fork":false,"pushed_at":"2025-02-05T13:01:40.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T18:49:55.009Z","etag":null,"topics":["pygame","python","snake-game"],"latest_commit_sha":null,"homepage":"","language":"Python","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/rafaybbx.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":"2025-02-04T02:51:25.000Z","updated_at":"2025-02-05T13:01:43.000Z","dependencies_parsed_at":"2025-02-04T03:37:25.797Z","dependency_job_id":null,"html_url":"https://github.com/rafaybbx/python-snake-game","commit_stats":null,"previous_names":["rafaybbx/python-snake-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rafaybbx/python-snake-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaybbx%2Fpython-snake-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaybbx%2Fpython-snake-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaybbx%2Fpython-snake-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaybbx%2Fpython-snake-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaybbx","download_url":"https://codeload.github.com/rafaybbx/python-snake-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaybbx%2Fpython-snake-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34565238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["pygame","python","snake-game"],"created_at":"2025-02-25T18:50:01.058Z","updated_at":"2026-06-20T09:31:27.904Z","avatar_url":"https://github.com/rafaybbx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Snake Game 🐍\n\nA classic Snake game implementation using Pygame. This is a modern recreation of the iconic Nokia phone game where players control a snake to eat apples and grow longer while avoiding collisions.\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/4027588e-6226-4769-ba20-3f58bb8a4f10\" alt=\"Snake Game GIF\"\u003e\n\u003c/p\u003e\n\n## 🎮 Game Features\n\n- Smooth snake movement with arrow key controls\n- Apple collection mechanics that increase snake length\n- Collision detection for walls and self-intersection\n- Clean and simple visual design\n- Consistent game speed and performance\n\n## 🛠️ Technical Details\n\n### Requirements\n- Python 3.x\n- Pygame library\n\n### Installation\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/yourusername/python-snake-game.git\n```\n2. Install the required dependencies:\n```bash\npip install pygame\n```\n3. Run the game:\n```bash\npython snake.py\n```\n\n### Controls\n- ⬆️ Up Arrow: Move snake upward\n- ⬇️ Down Arrow: Move snake downward\n- ➡️ Right Arrow: Move snake right\n- ⬅️ Left Arrow: Move snake left\n\n## 🎯 Game Rules\n\n- Control the snake to eat the apples that appear on the screen\n- Each apple eaten makes the snake grow longer\n- Game ends if the snake:\n  - Hits the walls (screen boundaries)\n  - Collides with itself\n\n## 🏗️ Project Structure\n\nThe game is built using object-oriented programming with three main classes:\n- `SNAKE`: Handles snake movement, growth, and rendering\n- `FRUIT`: Manages apple spawning and rendering\n- `MAIN`: Controls game logic, collisions, and game over conditions\n\n## 🎨 Graphics\nThe game uses a simple apple sprite for the fruit. Make sure you have the following file:\n- `Graphics/apple.png`\n\n\n## 🤝 Contributing\n\nFeel free to fork this project and make your own modifications. Some possible enhancements could include:\n- Adding a score system\n- Implementing different difficulty levels\n- Adding sound effects\n- Creating a main menu\n- Adding different types of food with special effects\n\n## 📝 License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n---\n\nCreated with ❤️ using Python and Pygame\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaybbx%2Fpython-snake-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaybbx%2Fpython-snake-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaybbx%2Fpython-snake-game/lists"}