/snake-game

Classic Snake Game implemented in Java. Navigate the snake to eat food, grow longer, and avoid running into walls or itself. Simple controls, increasing difficulty, and endless fun!

Primary LanguageJava

Snake Game

Welcome to the Snake Game! This is a classic arcade game implemented in Java. The objective is simple: navigate the snake to eat food, grow longer, and avoid running into the walls or itself.

Features

  • Classic Snake Game mechanics
  • Simple and intuitive controls
  • Growing difficulty as the snake gets longer
  • Score tracking
  • Game Over screen

How to Play

  • Use the arrow keys on your keyboard to control the direction of the snake.
  • Up Arrow: Move up
  • Down Arrow: Move down
  • Left Arrow: Move left
  • Right Arrow: Move right
  • The snake will move continuously in the current direction until you change it.
  • Eat the food that appears randomly on the screen to grow longer.
  • Avoid hitting the walls or the snake's own body, or the game will end.
  • The score increases with each piece of food the snake eats. Try to achieve the highest score possible!

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request. When contributing, please ensure you follow the standard coding style and write clear, concise commit messages.