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.
- 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)
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.
- Java
- Swing & AWT libraries
- Clone the repo:
git clone https://github.com/yourusername/snake-game.git
- Open in any Java IDE (e.g. NetBeans, IntelliJ).
- Run the 'Snakeio.java class' .
- Navicate to play menu and use arrow keys to control the snake.
- Enjoy