A Sudoku Solver desktop application built with Java Swing that lets you input Sudoku puzzles, visualize the solving process live, and optionally upgrade it to solve puzzles directly from images using OCR.
- ✅ 9x9 Sudoku grid with input validation
- 🎯 Backtracking algorithm for solving
- 🖥️ Live solving visualization with GUI updates
- 🔄 Reset and Solve functionality
- 🔍 OCR integration to read puzzles from images (to be implemented)
- Java
- Java Swing (GUI)
SwingWorker
(for multithreading with GUI updates)- (Optional) Tesseract OCR for image input
- Enter Sudoku numbers into the grid.
- Click the "Solve" button.
- The algorithm runs in the background (
SwingWorker
) and updates the GUI step-by-step. - Displays a success or error message on completion.
To enable OCR input:
- Install Tesseract OCR.
- Add
OCRReader.java
to your project. - Use
OCRReader.readGridFromImage("path/to/image.png")
to auto-fill the board.
- Clone the repo:
git clone https://github.com/yourusername/java.SudokuSolver.git
- Compile and Run
javac src/*.java java src.java.SudokuSolverGUI