An open API service indexing awesome lists of open source software.

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.

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.

![Java](https://img.shields.io/badge/Java-%23ED8B00.svg?&style=flat&logo=java&logoColor=white)
![Swing](https://img.shields.io/badge/Swing-Framework-orange?style=flat)

## â„šī¸ 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** | ![Java](https://img.shields.io/badge/Java-%23ED8B00.svg?&style=flat&logo=java&logoColor=white) |
| **Swing** | ![Swing](https://img.shields.io/badge/Swing-Framework-orange?style=flat) |

## 🤝 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. 📃