This is a simple implementation of the classic Snake Game using Java. The game is played on a rectangular grid, where the player controls a snake that grows in length with each piece of food it consumes. The objective is to grow the snake as long as possible without colliding with the walls or the snake's own body.
- Classic snake game mechanics
- Growing snake when food is eaten
- Game over when the snake collides with itself or the wall
- Java
- Java Development Kit (JDK) installed on your system. You can download it from here.
- Use the arrow keys on your keyboard to control the direction of the snake.
- The snake will grow in length each time it eats the food.
- Avoid colliding with the walls or the snake's own body.