Package de.sfuhrm.sudoku
Class Solver
java.lang.Object
de.sfuhrm.sudoku.Solver
Solves a partially filled Sudoku. Can find multiple solutions if they are
there.
- Author:
- Stephan Fuhrmann
-
Field Details
-
DEFAULT_LIMIT
public static final int DEFAULT_LIMITThe default limit.- See Also:
-
limit- Constant Field Values
-
-
Constructor Details
-
Solver
Creates a solver for the given riddle.- Parameters:
solveMe- the riddle to solve.
-
-
Method Details
-
setLimit
public void setLimit(int set) Set the limit for maximum results.- Parameters:
set- the new limit.
-
solve
Solves the Sudoku problem.- Returns:
- the found solutions. Should be only one.
-