This is a classic Snake Game implementation using Java. The game allows the player to control a snake that moves around the screen, eating food and growing longer with each food item. The player must avoid hitting the snake's own body.
- Java 8 or later
- Download or clone this repository
- Open the terminal and navigate to the repository directory
- Compile the program using the following command:
$ javac Main.java
- Run the game using the following command:
$ java Main
- Use the arrow keys on your keyboard to control the snake's movement
- Eat the food to grow longer
- Avoid hitting the snake's own body
- The game ends when the snake collides with its own body
- The speed will increase as your rank rises.