Package zebra4j
Class PuzzleSolver
java.lang.Object
zebra4j.PuzzleSolver
Solver for
BasicPuzzle
-
Constructor Summary
ConstructorsConstructorDescriptionPuzzleSolver(BasicPuzzle puzzle)
Initialize a new solver with default configuration -
Method Summary
Modifier and TypeMethodDescriptionorg.chocosolver.solver.Settings
The settings for the underlying SAT solvervoid
setChocoSettings(org.chocosolver.solver.Settings chocoSettings)
The settings for the underlying SAT solversolve()
Solves the puzzles eagerly.
-
Constructor Details
-
PuzzleSolver
Initialize a new solver with default configuration- Parameters:
puzzle
- the puzzle to be solved, required
-
-
Method Details
-
solve
Solves the puzzles eagerly.- Returns:
- a list of all distinct solution.
-
solveToStream
- Returns:
- a lazy stream of all solutions with possible duplicates
-
getChocoSettings
public org.chocosolver.solver.Settings getChocoSettings()The settings for the underlying SAT solver -
setChocoSettings
public void setChocoSettings(org.chocosolver.solver.Settings chocoSettings)The settings for the underlying SAT solver
-