Skip to content

This repository contains a simple snack game developed in Java using the JPanel and JFrame libraries within the IntelliJ IDE. The game is designed to be played using arrow keys and features score calculation to keep track of the player's progress.

Notifications You must be signed in to change notification settings

Iyedchaabane/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

This is a simple Snake Game implemented in Java using JPanel and JFrame. The game allows players to control a snake using the arrow keys to collect food items and grow in length. The main features of the game include:

  • Snake Movement: Control the snake's direction using the arrow keys (Up, Down, Left, Right).

  • Scoring System: The game keeps track of your score based on the number of food items collected.

How to Play

  1. Clone or download this repository to your local machine.

  2. Open the project in your IntelliJ IDEA IDE.

  3. Run the SnakeGame.java file to start the game.

  4. Use the arrow keys to navigate the snake and collect food items.

  5. Try to achieve the highest score possible!

Dependencies

This game is built using Java's Swing library for the graphical user interface components. No additional external dependencies are required.

Screenshots

snake game snake game over snake play

Contributions

Contributions are welcome! If you'd like to improve the game or fix any issues, please fork this repository, make your changes, and submit a pull request.

License

This Snake Game is released under the MIT License. Feel free to use, modify, and distribute it as you see fit.

Enjoy the game!

About

This repository contains a simple snack game developed in Java using the JPanel and JFrame libraries within the IntelliJ IDE. The game is designed to be played using arrow keys and features score calculation to keep track of the player's progress.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages