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, removeSudokuGridListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSudokuGridListener, removeSudokuGridListenerpublic String getCellValue(int iRow, int iCol)
getCellValue in interface SudokuGridModelpublic void dumpGrid()
public void consistencyCheck()
public void solve()
solve in interface SudokuGridModelpublic void step()
step in interface SudokuGridModelpublic boolean isSolved()
public boolean isUnsolvable()
public void setCellValues(Integer[][] cellValues)
setCellValues in interface SudokuGridModelpublic void validate()
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.