A classic Snake Game built using Java and Swing. Control the snake, collect food, and grow longer while avoiding collisions with your own body. The game features smooth gameplay, a grid system, and wrap-around screen mechanics for endless fun!
- Grid-Based Movement: Move the snake up, down, left, or right on a grid.
- Food Collection: Eat food to grow longer.
- Wrap-Around Mechanics: Snake wraps around the edges of the screen.
- Game Over: Ends when the snake collides with itself.
- Score Display: Track your score based on the snake's length.
- Use the arrow keys to control the snake:
- Up Arrow: Move Up
- Down Arrow: Move Down
- Left Arrow: Move Left
- Right Arrow: Move Right
- Avoid colliding with the snake's body.
- Press Space to restart when the game is over.
- Press 0 to exit the game.
- Clone the repository:
git clone https://github.com/No-man1234/SnakeGame.git