Class RuleOfNIdenticalCellsOfSizeN


  • @ServiceProviderFor(Rule.class)
    public class RuleOfNIdenticalCellsOfSizeN
    extends RuleOfElimination
    Sudoku "rule-of-N-identical-cells-of-size-N" Rule implementation. 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