Skip to content

abdulhakim14/simple_snakegame_by_Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Snake Game

This is a interactive implementation of the classic Snake Game using Java and Swing.

Description

This game is a popular retro arcade game where the player controls a snake that grows longer as it consumes apples. The objective is to guide the snake to eat as many apples as possible without colliding with the boundaries of the game screen or its own body.

This project provides a graphical user interface (GUI) for the game using Swing components. It includes features such as snake movement, apple generation, collision detection, and scoring. The player can control the snake's direction using the arrow keys on the keyboard.

Demo

Installation

  1. Clone the repository:

    git clone https://github.com/abdulhakim14/simple_snakegame_by_Java.git
  2. Open the project in your Java IDE.

  3. Build and run the project.

Contol System

  1. Launch the game.

  2. Use the arrow keys on your keyboard to control the snake's movement.

  3. Try to eat as many apples as possible and avoid colliding with the boundaries or the snake's own body.

  4. The game ends when the snake collides with a boundary or itself. Your score will be displayed.

Contributing

Contributions are mostly welcome! If you have any new ideas for improvements or bug fixes, feel free to open an issue or submit a pull request.

About

This is a interactive implementation of the classic Snake Game using Java and Swing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages