Este contenido no está disponible en el idioma seleccionado.
25.4. Sudoku Example: Cell Objects
CellandCellGroupare subclasses ofSetOfNine, which provides a propertyfreewith the typeSet<Integer>. For aCellit represents the individual candidate set. For aCellGroupthe set is the union of all candidate sets of its cells, or the set of digits that still need to be allocated.- You can write rules that detect the specific situations that permit the allocation of a value to a cell or the elimination of a value from some candidate set. For example, you can create a list of
Cellobjects with 81Celland 27CellGroupobjects. You can also combine the linkage provided by theCellpropertiescellRow,cellCol,cellSqrand theCellGrouppropertycells.