Package io.github.skenvy
Class SudokuGrid
java.lang.Object
io.github.skenvy.SudokuGrid
A Sudoku Grid ~ the whole "board" with N rows, columns, and boxes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Used for cell related exceptions.class
-
Constructor Summary
ConstructorsConstructorDescriptionInitialise an empty sudoku grid for a standard Sudoku board.SudokuGrid
(int boardSize) Initialise an empty sudoku grid for a custom sized Sudoku board.SudokuGrid
(SudokuGrid initialGrid, boolean exactReplica) Initialise a grid from one already established. -
Method Summary
-
Constructor Details
-
SudokuGrid
public SudokuGrid() throws SudokuGrid.SudokuCellGridInvalidGridShapeException, Cell.SudokuCellInvalidInitialValueExceptionInitialise an empty sudoku grid for a standard Sudoku board. -
SudokuGrid
public SudokuGrid(int boardSize) throws SudokuGrid.SudokuCellGridInvalidGridShapeException, Cell.SudokuCellInvalidInitialValueException Initialise an empty sudoku grid for a custom sized Sudoku board. -
SudokuGrid
public SudokuGrid(SudokuGrid initialGrid, boolean exactReplica) throws SudokuGrid.SudokuCellGridInvalidGridShapeException, Cell.SudokuCellInvalidInitialValueException Initialise a grid from one already established.
-
-
Method Details
-
getRows
-
getColumns
-
getBoxes
-