REPOSITORY OVERVIEWLive repository statistics
★ 3Stars
⑂ 0Forks
◯ 0Open issues
◉ 3Watchers
47/100
OPENREPOHUB HEALTH SIGNALMixed signals
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
52 Community adoption25% weight
7 Maintenance state20% weight
100 License clarity10% weight
0 Project information10% weight
75 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
🐍🎮 Snake-game
🔍 Game Description:
This is a classic Snake game implemented in Java using Swing GUI components (JFrame, JPanel, Timer, etc.). The player controls a snake that grows in length by eating food. The game ends if the snake collides with itself or the wall.
🎯 Game Objective:
- Control the snake using arrow keys.
- Eat the food (randomly appearing).
- Each food increases the snake’s length and score.
- Avoid crashing into the wall or the snake’s own body.
📸 Screenshot:

🛠️ Tech Stack:
- Java SE (8+)
- Swing (GUI)
- AWT (for graphics and event handling)
⚙️ Game Features:
- Real-time movement using Timer and key listeners.
- Score system based on how much food is eaten.
- Collision detection (walls & self).
- Restart functionality.
- Java Swing-based GUI using:
- JFrame (main window)
- JPanel (game area)
- Graphics (drawing snake, food, score)
📄 How the Game Works (Flow):
-
Snake starts moving in a direction.
-
Player controls it using arrow keys (up, down, left, right).
-
If snake eats food:
Grows longer.
Score increases.
New food is generated randomly.
-
If snake hits:
Wall or itself → game over.
Press R to restart after game over.
📞 Contact Information
🐙 GitHub: https://github.com/pratikkhot100
💼 LinkedIn: https://www.linkedin.com/in/pratikkhot01
📧 Email: pratikkhot1207@gmail.com
ALGORITHMICALLY RELATEDSimilar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
This repository is for my students of Udemy. You can find all lecture codes along with mentioned files for reading in here. So, feel free to clone it and if you have any problem just raise a question.
39/100 healthActive repository
HTMLMIT#game-development#html5#javascript
⑂ 20 forks◯ 2 issuesUpdated May 6, 2025
This is a code of 9 hour JS GameDev tutorial by Frank's Laboratory
31/100 healthActive repository
JavaScriptNo license#game#html5-canvas#javascript
⑂ 0 forks◯ 0 issuesUpdated Feb 10, 2024