How javalc6/sudoku works
This repository provides two ways to use Sudoku: an interactive Swing game and a command-line solver/generator. The main workflow is to create or enter a board, solve it with a selected algorithm, and show the result. The solver includes recursive, bitmap, optimized bitmap, and Dancing Links approaches; it also supports board validation, uniqueness checks, and benchmark boards. The game’s UI and solver calls are visible in the excerpts. Some benchmark wiring is only documented or indexed, so those relationships are shown only where supported.
Main entry points: Sudoku.java Board and checks · SudokuGame.java Swing game · SudokuDLX.java Exact-cover solver · Resources.java Benchmark boards
Components 13
Interactive game
- Swing game
src/game/SudokuGame.java - Move validation
src/game/SudokuGame.java
Board and solvers
- Puzzle generation
src/solver/Sudoku.java - Board and checks
src/solver/Sudoku.java - Recursive solver
src/solver/Sudoku.java - Bitmap solvers
src/solver/Sudoku.java - Uniqueness check
src/solver/Sudoku.java - Board parsing
src/solver/Sudoku.java - DLX adapter
src/solver/Sudoku.java
Dancing Links
- Exact-cover solver
src/dlx/SudokuDLX.java
Benchmark data
- Benchmark boards
src/solver/Resources.java
Other components
- Player
- CLI user
Connections 13
- Player → Swing game: plays
README.md - CLI user → Board parsing: supplies board
README.md - Swing game → Puzzle generation: generates puzzle
src/game/SudokuGame.java - Swing game → Move validation: checks moves
src/game/SudokuGame.java - Swing game → Bitmap solvers: requests solve
src/game/SudokuGame.java - Puzzle generation → Uniqueness check: checks uniqueness
src/solver/Sudoku.java - Puzzle generation → Recursive solver: solves board
src/solver/Sudoku.java - Recursive solver → Board and checks: checks candidates
src/solver/Sudoku.java - Bitmap solvers → Board and checks: reads board
src/solver/Sudoku.java - DLX adapter → Exact-cover solver: delegates solve
src/solver/Sudoku.java - DLX adapter → Board and checks: imports result
src/solver/Sudoku.java - CLI user → Board and checks: runs commands
README.md - Board and checks → Benchmark boards: uses benchmark boards
src/solver/Sudoku.java