The SnakeGame is a classic arcade-style game implemented in pure Java, offering an engaging and nostalgic gaming experience with modern 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
- Java (Core Language)
- Swing (GUI)
- AWT (Graphics)
- Maven (Dependency Management)
- JUnit (Unit Testing)
- Log4j (Logging)
- Java Sound API
- Java 2D Graphics
Ensure you have the following installed:
- Java Development Kit (JDK) 11 or higher
- Maven
- Clone the repository:
git clone https://github.com/yourusername/SnakeGame.git
cd SnakeGame
- Compile the project:
mvn clean install
- Run the game:
mvn exec:java
- Use arrow keys to control the snake
- Eat food to grow longer
- Avoid hitting walls or yourself
- Achieve the highest score possible
↑
- Move Up↓
- Move Down←
- Move Left→
- Move RightP
- Pause/ResumeESC
- Exit Game
Contributions are welcome! To contribute:
- Fork the repository
- Create a new branch (
feature-xyz
) - Commit your changes
- Push to the branch
- Submit a pull request
Run automated tests:
mvn test
- Online Leaderboard
- Multiple Snake Skins
- Additional Game Modes
This project is licensed under the MIT License. See the LICENSE file for details.
- Email: [email protected]
- GitHub: @andkcode