public class Sudoku extends AbstractSudokuGridModel implements SudokuGridModel
Modifier and Type | Field and Description |
---|---|
Cell[][] |
cells |
static Sudoku |
sudoku |
INNER_GRID_HEIGHT, INNER_GRID_WIDTH, NUM_COLS, NUM_ROWS
Constructor and Description |
---|
Sudoku(org.kie.api.runtime.KieContainer kc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
consistencyCheck()
Checks that everything is still according to the sudoku rules.
|
void |
dumpGrid()
Nice printout of the grid.
|
String |
getCellValue(int iRow,
int iCol) |
boolean |
isSolved() |
boolean |
isUnsolvable() |
void |
setCellValues(Integer[][] cellValues) |
void |
solve() |
void |
step() |
String |
toString() |
void |
validate() |
addSudokuGridListener, fireCellUpdatedEvent, fireRestartEvent, removeSudokuGridListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSudokuGridListener, removeSudokuGridListener
public String getCellValue(int iRow, int iCol)
getCellValue
in interface SudokuGridModel
public void dumpGrid()
public void consistencyCheck()
public void solve()
solve
in interface SudokuGridModel
public void step()
step
in interface SudokuGridModel
public boolean isSolved()
public boolean isUnsolvable()
public void setCellValues(Integer[][] cellValues)
setCellValues
in interface SudokuGridModel
public void validate()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.