A fully-featured Java-based Sudoku game with automatic puzzle generation, recursive backtracking solver, performance analytics dashboard, achievement system, game history comparison, and much more โ built with clean Object-Oriented Architecture.
โจ Features โข ๐ง How It Works โข ๐ธ Screenshots โข ๐ Getting Started โข ๐๏ธ Architecture
| Feature | Description |
|---|---|
| ๐ฏ Interactive GUI Board | Playable 9ร9 Sudoku with real-time feedback |
| ๐ข 3 Difficulty Levels | Easy (25 removals), Medium (45), Hard (57) |
| ๐ค Auto Solver | Recursive backtracking solves any puzzle instantly |
| ๐ก Hint System | Reveals correct value for any selected cell |
| โ Mistake Detection | Highlights incorrect entries in red |
| โฑ๏ธ Timer | Tracks time taken to solve each puzzle |
| ๐ Reset Board | Clears user input while preserving original puzzle |
| Feature | Description |
|---|---|
| ๐ Performance Dashboard | Completion time, accuracy rate, efficiency score |
| ๐จ Performance Visualization | Circular score chart with detailed breakdown |
| ๐ Interactive Charts | Hints, mistakes, time & accuracy bar charts |
| ๐ฌ Advanced Statistics | Mean/median accuracy, standard deviation, trend slope |
| ๐ Game History Comparison | Compare current vs previous games side by side |
| Feature | Description |
|---|---|
| ๐ Achievement System | Diamond, Gold, Platinum, Bronze tiers |
| โญ Perfect Game ยท โก Speed Demon ยท ๐ฏ Accuracy Master ยท ๐ง Hintless Hero | Unlock by playing |
| ๐๏ธ Practice Mode | Targeted practice based on your performance stats |
| ๐ Generate Report | Save detailed performance report as PDF/TXT |
| ๐ Share Results | Share your score summary |
SudokuGame/
โโโ SudokuBoard.java # Core board state management
โโโ SudokuSolver.java # Recursive backtracking solver & hint engine
โโโ PuzzleGenerator.java # Random puzzle generation with difficulty control
โโโ SudokuGUI.java # Main game interface & user interaction
โโโ finalWindow.java # Performance dashboard & result display
The solver uses recursive backtracking โ a classic algorithm that tries every possible number and undoes bad choices automatically.
1. Find next empty cell
2. Try numbers 1โ9
3. Check validity (row, column, 3ร3 box)
4. If valid โ place number โ recurse
5. If stuck โ backtrack โ try next number
6. Repeat until board is complete
| Property | Detail |
|---|---|
| Algorithm | Recursive Backtracking |
| Time Complexity | O(9^m) worst case (m = empty cells) |
| Space Complexity | O(m) recursion stack |
| Practical Speed | Solves any valid puzzle in milliseconds |
- Java JDK 8 or higher
# Clone the repository
git clone https://github.com/huda-usman/sudoku-solver-game.git
# Navigate to project
cd sudoku-solver-game
# Compile all Java files
javac *.java
# Run the game
java SudokuGUIsudoku-solver-game/
โ
โโโ SudokuBoard.java # Core board state management
โโโ SudokuSolver.java # Recursive backtracking solver & hint engine
โโโ PuzzleGenerator.java # Random puzzle generation with difficulty control
โโโ SudokuGUI.java # Main game interface & user interaction
โโโ finalWindow.java # Performance dashboard & result display
โ
โโโ ๐ screenshots/ # All UI screenshots
โโโ README.md
This project is open-source under the MIT License.
















