Welcome to the Snake Game implemented in Java. This classic arcade game challenges you to control a snake that grows longer as it consumes food. The goal is to navigate the snake around the screen, avoid collisions with the walls and itself, and eat as much food as possible.
-
Ensure you have Java installed on your machine.
-
Clone this repository to your local machine.
git clone https://github.com/GDGouravDey/Snake-Game.git
-
Navigate to the Project Directory
-
Run the file 'App.java' to play and enjoy the Snake Game.
- Up Arrow Key:
Move the snake up
- Down Arrow Key:
Move the snake down
- Left Arrow Key:
Move the snake left
- Right Arrow Key:
Move the snake right
- Enter Key:
Start the Game or Play Again after the Game is Over
The workspace contains two folders by default, where:
src
: the folder to maintain sourceslib
: the folder to maintain dependencies
Meanwhile, the compiled output files will be generated in the bin
folder by default.