Skip to content

A classic Snake game implemented in pure Java, featuring intuitive controls, multiple difficulty levels, and a fun, nostalgic gameplay experience.

Notifications You must be signed in to change notification settings

andkcode/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

SnakeGame

The SnakeGame is a classic arcade-style game implemented in pure Java, offering an engaging and nostalgic gaming experience with modern features.

Features

  • Classic Gameplay: Traditional Snake game mechanics
  • Multiple Difficulty Levels: Easy, Medium, and Hard modes
  • Score Tracking: Persistent high score system
  • Customizable Settings: Adjust game speed, snake color, and board size
  • Sound Effects: Immersive audio feedback
  • Graphical User Interface: Smooth and responsive game rendering

Technologies Used

Core Technologies

  • Java (Core Language)
  • Swing (GUI)
  • AWT (Graphics)

Development Tools

  • Maven (Dependency Management)
  • JUnit (Unit Testing)
  • Log4j (Logging)

Graphics & Sound

  • Java Sound API
  • Java 2D Graphics

Installation & Setup

Prerequisites

Ensure you have the following installed:

  • Java Development Kit (JDK) 11 or higher
  • Maven

Steps

  1. Clone the repository:
git clone https://github.com/yourusername/SnakeGame.git
cd SnakeGame
  1. Compile the project:
mvn clean install
  1. Run the game:
mvn exec:java

Usage

  • Use arrow keys to control the snake
  • Eat food to grow longer
  • Avoid hitting walls or yourself
  • Achieve the highest score possible

Game Controls

  • - Move Up
  • - Move Down
  • - Move Left
  • - Move Right
  • P - Pause/Resume
  • ESC - Exit Game

Contribution

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a new branch (feature-xyz)
  3. Commit your changes
  4. Push to the branch
  5. Submit a pull request

Testing

Run automated tests:

mvn test

Planned Features

  • Online Leaderboard
  • Multiple Snake Skins
  • Additional Game Modes

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

About

A classic Snake game implemented in pure Java, featuring intuitive controls, multiple difficulty levels, and a fun, nostalgic gameplay experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages