https://github.com/dikshitadas/snakegame
A nostalgic recreation of the Snake Game, developed using Java and Swing, where you control the snake's movement, aiming to eat the food while avoiding collisions with the walls or the snake's body.
https://github.com/dikshitadas/snakegame
awt awt-gui java java-22 swing swing-components swing-gui
Last synced: 10 months ago
JSON representation
A nostalgic recreation of the Snake Game, developed using Java and Swing, where you control the snake's movement, aiming to eat the food while avoiding collisions with the walls or the snake's body.
- Host: GitHub
- URL: https://github.com/dikshitadas/snakegame
- Owner: DikshitaDas
- Created: 2024-06-25T15:46:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-19T07:52:08.000Z (over 1 year ago)
- Last Synced: 2025-03-20T17:54:50.674Z (about 1 year ago)
- Topics: awt, awt-gui, java, java-22, swing, swing-components, swing-gui
- Language: Java
- Homepage: https://snake-game-pi-plum.vercel.app
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# đ Snake Game
A classic **Snake Game** built with **Java**, where players control a growing snake to eat food and avoid collisions, designed with simple yet engaging gameplay.



## âšī¸ About
A nostalgic recreation of the **Snake Game**, developed using **Java** and **Swing**, where you control the snake's movement, aiming to eat the food while avoiding collisions with the walls or the snake's body.
## đ Features
- đšī¸ **Classic Snake Game**: Move the snake to eat food and grow longer.
- đ¨ **Graphical User Interface (GUI)**: Simple and user-friendly design using **Java Swing**.
- âąī¸ **Dynamic gameplay**: The snake speeds up as it grows.
- đĨ **Collision detection**: Game ends when the snake collides with itself or the walls.
## đĻ Installation
### 1. Clone the Repository
```bash
git clone https://github.com/DikshitaDas/SnakeGame.git
cd SnakeGame
```
### 2. Compile and Run the Game
```bash
javac SnakeGame.java
java SnakeGame
```
## đ Technologies Used
| Technology | Logo |
|-------------|------|
| **Java** |  |
| **Swing** |  |
## đ¤ Contributing
Contributions are welcome! Here's how you can contribute:
1. Fork the repository đ´
2. Create a new branch (`git checkout -b feature/amazing-feature`) đ§
3. Commit your changes (`git commit -m 'Add a new feature'`) đ
4. Push to the branch (`git push origin feature/amazing-feature`) đ¤
5. Open a pull request đŦ
## đ License
This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details. đ