uk.co.keang.sudoku.solver
Class AsymmetricGroupsSolver

java.lang.Object
  extended by uk.co.keang.sudoku.solver.AbstractSolver
      extended by uk.co.keang.sudoku.solver.AsymmetricGroupsSolver

public class AsymmetricGroupsSolver
extends AbstractSolver

Author:
A.G.Docherty Provides resolution by looking for a square which has an option of 2 possible numbers and then finding a pair of squares which contain 3 identical numbers of which 2 are the possible numbers. The third number can be removed from those values from the remaining empty squares

Nested Class Summary
 
Nested classes/interfaces inherited from class uk.co.keang.sudoku.solver.AbstractSolver
AbstractSolver.SolverDifficulty
 
Field Summary
 
Fields inherited from class uk.co.keang.sudoku.solver.AbstractSolver
found, hGrid, puzzle
 
Constructor Summary
AsymmetricGroupsSolver(Puzzle grid)
           
 
Method Summary
 int findSolutions()
          Runs the solver once to try to resolve individual squares
 
Methods inherited from class uk.co.keang.sudoku.solver.AbstractSolver
addSolverListener, fireSolutionEvent, getDifficultyFactor, getSolverDifficulty, hasSolverListeners, removeAllFromSet, removeAllSolverListeners, removeSolverListener, retainAllInSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsymmetricGroupsSolver

public AsymmetricGroupsSolver(Puzzle grid)
Method Detail

findSolutions

public int findSolutions()
                  throws IllegalGridException
Description copied from class: AbstractSolver
Runs the solver once to try to resolve individual squares

Specified by:
findSolutions in class AbstractSolver
Returns:
the number of solutions found
Throws:
IllegalGridException