Package ball.game.sudoku
Class RuleOfNIdenticalCellsOfSizeN
- java.lang.Object
-
- ball.game.sudoku.Rule
-
- ball.game.sudoku.RuleOfElimination
-
- ball.game.sudoku.RuleOfNIdenticalCellsOfSizeN
-
@ServiceProviderFor(Rule.class) public class RuleOfNIdenticalCellsOfSizeN extends RuleOfElimination
Sudoku "rule-of-N-identical-cells-of-size-N"Ruleimplementation. If a row, column, or nonet contain two cells that are identical with the same two possible digits, then those digits may be removed as possible solutions from the other cells in that same row, column, or nonet because those two digits may only be used as a solution in those two cells. This idea can be extended to three identical cells of three remaining options, four of four, etc... It also works for N=1 (cell is solved).- Author:
- Allen D. Ball
-
-
Constructor Summary
Constructors Constructor Description RuleOfNIdenticalCellsOfSizeN()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyTo(Puzzle puzzle)
-
-
-
Constructor Detail
-
RuleOfNIdenticalCellsOfSizeN
public RuleOfNIdenticalCellsOfSizeN()
-
-