How adithyakgowda10/sliding-puzzle-game works
This is a standalone Swing sliding-puzzle game. The main workflow is a player starting or selecting a puzzle, moving tiles through the board UI, and receiving gameplay tracking and a victory result. PuzzleLogic owns board state, solvable shuffling, and solution paths; GameBoard renders the state and captures input. The README documents additional image, daily-challenge, clue, and scoring features implemented within the main window. Several links for those features rely on README documentation because the relevant source sections were not sampled.
Main entry points: SlidingPuzzle.java Gameplay controls · GameBoard.java Tile board · PuzzleLogic.java Puzzle rules · GameServices.java Sound effects
Components 16
Game window
- Game window
src/SlidingPuzzle.java - Game setup
src/SlidingPuzzle.java - Gameplay controls
src/SlidingPuzzle.java - Image gallery
src/SlidingPuzzle.java - Daily challenge
src/SlidingPuzzle.java - Victory and records
src/SlidingPuzzle.java - Saved progress
Puzzle engine
- Puzzle rules
src/PuzzleLogic.java - Solvable shuffle
src/PuzzleLogic.java - Puzzle solver
src/PuzzleLogic.java
Board interface
- Tile board
src/GameBoard.java - Tile rendering
src/GameBoard.java
Gameplay services
- Game timer
src/GameServices.java - Sound effects
src/GameServices.java
Other components
- Player
- Java Sound
Connections 22
- Player → Game window: uses
README.md - Game window → Game setup: offers
README.md - Game setup → Solvable shuffle: starts puzzle
README.md - Game window → Tile board: displays
README.md - Tile board → Puzzle rules: reads board state
src/GameBoard.java - Tile board → Tile rendering: renders tiles
src/GameBoard.java - Player → Tile board: moves tiles
README.md - Tile board → Gameplay controls: reports input
src/SlidingPuzzle.java - Gameplay controls → Puzzle rules: moves tiles
README.md - Gameplay controls → Game timer: starts and pauses
README.md - Gameplay controls → Sound effects: plays effects
README.md - Gameplay controls → Puzzle solver: requests solution
README.md - Puzzle solver → Gameplay controls: returns moves
README.md - Gameplay controls → Victory and records: reports victory
README.md - Game window → Image gallery: manages images
README.md - Image gallery → Tile board: sets puzzle image
README.md - Game window → Daily challenge: offers challenge
README.md - Daily challenge → Solvable shuffle: seeds board
README.md - Daily challenge → Saved progress: saves records
README.md - Victory and records → Saved progress: saves best
README.md - Puzzle rules → Solvable shuffle: generates board
src/PuzzleLogic.java - Sound effects → Java Sound: synthesizes audio
src/GameServices.java