A simple Snake game implemented in Java using Swing for the GUI.
This project is a classic Snake game implementation written in Java. It provides a graphical interface using Java Swing for the game display and user interaction.
- Snake movement and control
- Food generation and consumption
- Score tracking
- Game over detection
- Restart functionality
To play the game, you'll need to have Java installed on your system. You can run the game using the provided JAR file or compile the source code yourself.
- Download the
snake-game.jar
file from the repository. - Double-click the JAR file to run the game.
Really? Who doesn't know how to play Snake Game
- The snake moves in the direction of the arrow keys.
- The game ends when the snake collides with the wall or itself.
- Use the arrow keys (up, down, left, right) to control the snake's movement.
- Press the "Restart" button to restart the game after it ends.
Contributions to the project are welcome! If you'd like to contribute, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License.