Package io.github.skenvy
Class CellCollection
java.lang.Object
io.github.skenvy.CellCollection
A collection of cells ~ can be a row, column, or box|region|block.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Used for cell collection related exceptions. -
Constructor Summary
ConstructorsConstructorDescriptionInitialise an empty collection to reference 9 cells in a row, column, or box.CellCollection
(int boardSize) Initialise an empty collection to reference N*N cells in a row, column, or box. -
Method Summary
-
Constructor Details
-
CellCollection
public CellCollection()Initialise an empty collection to reference 9 cells in a row, column, or box. -
CellCollection
public CellCollection(int boardSize) Initialise an empty collection to reference N*N cells in a row, column, or box.
-
-
Method Details
-
getCells
Get a collection of the cells. -
addCellToCollection
-
getValues
public int[] getValues()
-