Skip to content

Marinopolis/Snake-Game-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

Welcome to the Snake Game! This classic game is implemented in Java using Swing for the graphical interface. Enjoy controlling the snake, eating apples, and growing longer. Be careful not to collide with the walls or yourself!

image

How to Play

  1. Controls:

    • Use the arrow keys (UP, DOWN, LEFT, RIGHT) to control the snake's direction.
  2. Objective:

    • Eat the red apples to grow longer.
    • Avoid colliding with the walls and the snake's own body.
  3. Game Over:

    • The game ends when the snake collides with itself or the walls.
    • A "Game Over" message will be displayed with your final score.

Getting Started

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/SnakeGame.git