Welcome to the Snake Game! This classic game is implemented in Java using Swing for the graphical interface. Enjoy controlling the snake, eating apples, and growing longer. Be careful not to collide with the walls or yourself!
-
Controls:
- Use the arrow keys (
UP
,DOWN
,LEFT
,RIGHT
) to control the snake's direction.
- Use the arrow keys (
-
Objective:
- Eat the red apples to grow longer.
- Avoid colliding with the walls and the snake's own body.
-
Game Over:
- The game ends when the snake collides with itself or the walls.
- A "Game Over" message will be displayed with your final score.
-
Clone the repository to your local machine:
git clone https://github.com/your-username/SnakeGame.git