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.
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.
- 🕹️ 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.
git clone https://github.com/DikshitaDas/SnakeGame.git
cd SnakeGame
javac SnakeGame.java
java SnakeGame
Technology | Logo |
---|---|
Java | |
Swing |
Contributions are welcome! Here's how you can contribute:
- Fork the repository 🍴
- Create a new branch (
git checkout -b feature/amazing-feature
) 🚧 - Commit your changes (
git commit -m 'Add a new feature'
) 📝 - Push to the branch (
git push origin feature/amazing-feature
) 📤 - Open a pull request 📬
This project is licensed under the MIT License. See the LICENSE file for details. 📃