@ServiceProviderFor(value=Rule.class) public class RuleOfNIdenticalCellsOfSizeN extends RuleOfElimination
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).Constructor and Description |
---|
RuleOfNIdenticalCellsOfSizeN() |
Modifier and Type | Method and Description |
---|---|
boolean |
applyTo(Puzzle puzzle)
|
public RuleOfNIdenticalCellsOfSizeN()
Copyright © 2015–2020 Allen D. Ball. All rights reserved.