Skip to content

A classic Snake game implementation in Java. Control the snake, eat apples, and grow longer without hitting walls or yourself! Simple, intuitive, and fun. Feel free to fork and review.

Notifications You must be signed in to change notification settings

TechAngelX/SnakeIt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnakeIt

Relive your Nokia 3310 vibes !

SnakeIt Interface

🎮 Gameplay

You've played this game before. You know how it goes.

  • Use the arrow keys to control the snake
  • Eat apples to grow longer
  • The game ends if you:
    • Hit the wall
    • Run into yourself

Tech Stack

  • Java
  • Swing GUI (old skool, I know!)
  • Maven (project structure & build)

## 📂 Project Structure
SnakeIt/
├── pom.xml
├── README.md
└── src/
    └── main/
        ├── java/
        │   └── org/
        │       └── snakeIt/
        │           ├── Audio.java
        │           ├── GameFrame.java
        │           ├── GamePanel.java
        │           └── SnakeGame.java
        └── resources/
            ├── Screenshot1.png
            └── Screenshot2.png

▶️ How to Run

Option 1: Run with Java (Quickest)

From the project root:

cd src/main/java
javac org/snakeIt/*.java
java org.snakeIt.SnakeGame

Option 2: Run with Maven

From the project root:

mvn clean package
java -cp target/classes org.snakeIt.SnakeGame

Option 3: Run in an IDE (Recommended)

  1. Open IntelliJ IDEA or Eclipse
  2. Open the SnakeIt folder
  3. Import as a Maven project
  4. Open SnakeGame.java
  5. Right-click → Run

⌨️ Controls

Key Action
Move Up
Move Down
Move Left
Move Right

📚 Credits

Contributing

Feel free to fork, experiment, and improve the project. Pull requests and suggestions are most welcome.

License

Creative Commons: © Ricki Angel 2026 | TechAngelX

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Disclaimer

This project is for personal or educational use only and comes without any warranty.


Support

For issues or questions, feel free to reach out to me on GitHub.

Tech Angel X Logo

Built by Ricki AngelTech Angel X

About

A classic Snake game implementation in Java. Control the snake, eat apples, and grow longer without hitting walls or yourself! Simple, intuitive, and fun. Feel free to fork and review.

Credit: 'Bro Code' - https://www.youtube.com/watch?v=bI6e6qjJ8JQ Credit: 'StackOverflow' https://stackoverflow.com/questions/34036216/drawing-java-grid-using-swing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages