Snake Game is a simple implementation of the classic Snake game using Java Swing. It provides a basic gaming experience with a snake that grows longer as it eats apples, aiming to achieve a higher score without colliding with itself or the game boundaries.
- Control the snake's direction using arrow keys (Up, Down, Left, Right).
- Grow the snake's length by eating apples.
- Keep track of the score.
- Display a "Game Over" message when the snake collides with itself or the game boundaries.
- Show a winner popup when the score reaches 10.
- Java Development Kit (JDK) installed on your machine.
-
Clone the repository:
git clone https://github.com/hari7261/SnakeGame.git
-
Compile the Java files:
javac SnakeGame.java
-
Run the game:
java SnakeGame
-
Use arrow keys to control the snake's direction and enjoy the game!
- Control the snake's direction with the arrow keys.
- Eat apples to grow longer and increase your score.
- Avoid colliding with the snake's own body and the game boundaries.
- Reach a score of 10 to see the winner popup.
- ##Hariom kumar pandit
This project is licensed under the MIT License - see the LICENSE file for details.
- The project was created as a simple game of a Snake game using Java Swing.
Feel free to add additional sections or details based on your preferences or any specific information related to your implementation of the Snake Game.