How trishank18/snake__game works
This is a Java Swing Snake game with optional account registration and login, a trial-start path, timed keyboard-controlled gameplay, and score recording. The main user journey starts at the login window, enters the game through login or trial, and saves a score after game over. Authentication and registration access MySQL directly; score persistence goes through DatabaseHandler. README documentation is minimal, so the map reflects the sampled Java source and tree; no unsampled capabilities are assumed.
Main entry points: LoginFrame.java Login Window · SnakeGame.java Application Launcher · RegistrationFrame.java Registration Window · GameFrame.java Game Window
Components 8
Application Entry
- Application Launcher
SNAKE GAME/SnakeGame.java
Accounts
- Login Window
SNAKE GAME/LoginFrame.java - Registration Window
SNAKE GAME/RegistrationFrame.java
Gameplay
- Game Window
SNAKE GAME/GameFrame.java - Snake Gameplay
SNAKE GAME/GamePanel.java
Persistence
- Score Handler
SNAKE GAME/DatabaseHandler.java - MySQL Database
Other components
- Player
Connections 9
- Player → Application Launcher: launches
- Application Launcher → Login Window: opens
- Login Window → Registration Window: opens
- Login Window → Game Window: starts game
- Login Window → MySQL Database: checks credentials
- Registration Window → MySQL Database: stores account
- Game Window → Snake Gameplay: creates
- Snake Gameplay → Score Handler: submits score
- Score Handler → MySQL Database: inserts score