Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 897 Bytes

File metadata and controls

25 lines (16 loc) · 897 Bytes

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