Skip to content

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.

Notifications You must be signed in to change notification settings

DikshitaDas/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🐍 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 Swing

ℹ️ 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

git clone https://github.com/DikshitaDas/SnakeGame.git
cd SnakeGame

2. Compile and Run the Game

javac SnakeGame.java
java SnakeGame

🛠 Technologies Used

Technology Logo
Java Java
Swing 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 file for details. 📃

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages