Skip to content

A Snake Game as a Desktop Application made using Java.

Notifications You must be signed in to change notification settings

GDGouravDey/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Snake Game as a Desktop Application made using Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages