Skip to content

About

A classic Snake game built using Java Swing and AWT libraries. The player controls a snake in an 11x9 grid, aiming to eat apples to grow in size without colliding with walls or itself.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Game – Java GUI

A classic Snake game implemented in Java using Swing and AWT.
The player controls a snake inside an 11x9 grid, aiming to eat apples, grow in length, and avoid self-collision.

Demonstration video


🎮 Features

  • 11x9 game field with grid-based movement
  • Apple generation and snake growth logic
  • Game over on self-collision
  • Score tracking
  • Responsive keyboard input
  • Built with Java GUI (Swing & AWT)

💡 Purpose

This was a solo project developed for a university assignment.
While most students worked in pairs on simpler tasks, I chose to challenge myself by recreating a full playable game with proper structure and UI.


🛠 Technologies

  • Java
  • Swing & AWT libraries

🚀 How to Run

  1. Clone the repo:
    git clone https://github.com/yourusername/snake-game.git
  2. Open in any Java IDE (e.g. NetBeans, IntelliJ).
  3. Run the 'Snakeio.java class' .
  4. Navicate to play menu and use arrow keys to control the snake.
  5. Enjoy

About

A classic Snake game built using Java Swing and AWT libraries. The player controls a snake in an 11x9 grid, aiming to eat apples to grow in size without colliding with walls or itself.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages