Snake Game
This is a classic Snake Game implemented in Java using Swing, inspired by the principles of the classic Snake game.
How to Run
Make sure you have Java installed on your system.
Clone this repository to your local machine.
bash Copy code git clone https://github.com/trungddao/snake-game.git Compile and run the SnakeGame class. bash
Copy code
cd snake-game javac SnakeGame.java java SnakeGame Use the arrow keys to control the snake and navigate through the game grid.
Gameplay
The objective of the game is to control the snake, eat apples, and avoid collisions.
Use the arrow keys to change the snake's direction. Eat apples to grow the snake and increase your score. Avoid colliding with the snake's own body and the screen borders.
Customization
Feel free to customize the game or enhance the gameplay based on your preferences. The code is open for modification and improvement.
Acknowledgments
The game was created as a simple project to showcase Java Swing and game development concepts. Inspired by the classic Snake Game.
Enjoy playing the Snake Game!