A simple Snake Game developed in Java with optional MySQL database support for saving high scores.
If you don't configure MySQL, you can still play the game, but scores won't be recorded.
- Classic Snake mechanics: the snake grows with each apple eaten.
- Adjustable speed for various difficulty levels (configured in code).
- Optional database integration for storing high scores.
- Java 8 or higher.
- MySQL (optional) for score persistence.
- The snake starts at a fixed size.
- Apple spawns randomly on the board.
- Each time the snake eats an apple, it grows in length and your score increases.
- Hitting a wall or colliding with your own snake ends the game.
- If MySQL is configured, the final score is saved in the database.
This project is under the MIT License. Feel free to use or modify it as you wish.