Skip to content

This project is a simple Snake game written in the Java programming language. The game includes controlling the snake, eating food, and increasing the length of the snake with each eaten food unit.

Notifications You must be signed in to change notification settings

yhtyyar/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game in Java

This project is a simple implementation of the classic Snake game in Java. The game allows the player to control the snake, eat food to grow, and avoid collisions with walls and its own body.

Features:

  • Control the snake using arrow keys.
  • Grow the snake's length by eating food.
  • End the game upon collision with the walls or the snake's body.
  • Simple yet engaging gameplay experience.

How to Play:

  • Use the arrow keys to change the direction of the snake.
  • Eat the red food squares to grow in length.
  • Avoid running into the walls or the snake itself.

Technologies Used:

  • Java
  • Java Swing for the graphical interface

Feel free to give it a try and enjoy the nostalgia of the classic Snake game in a Java implementation.

About

This project is a simple Snake game written in the Java programming language. The game includes controlling the snake, eating food, and increasing the length of the snake with each eaten food unit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages