Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.06 KB

README.md

File metadata and controls

23 lines (19 loc) · 1.06 KB

Snake Game in Java

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.

How to Play

  1. Ensure you have Java installed on your machine.

  2. Clone this repository to your local machine.

    git clone https://github.com/GDGouravDey/Snake-Game.git

  3. Navigate to the Project Directory

  4. Run the file 'App.java' to play and enjoy the Snake Game.

Controls

  • 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

Folder Structure

The workspace contains two folders by default, where:

  • src: the folder to maintain sources
  • lib: the folder to maintain dependencies

Meanwhile, the compiled output files will be generated in the bin folder by default.