Class Solver

java.lang.Object
de.sfuhrm.sudoku.Solver

public final class Solver extends Object
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_LIMIT
      The default limit.
      See Also:
  • Constructor Details

    • Solver

      public Solver(GameMatrix solveMe)
      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

      public List<GameMatrix> solve()
      Solves the Sudoku problem.
      Returns:
      the found solutions. Should be only one.