|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eriksilkensen.sudoku.SolvingStrategy
public abstract class SolvingStrategy
Abstract representation of a SolvingStrategy that a Solver uses to solve Sudoku Boards.
Two helper methods are provided that subclasses will probably use while solving Boards.
The only functionality subclasses are required to implement is the actual solving of the Board.
| Constructor Summary | |
|---|---|
SolvingStrategy()
|
|
| Method Summary | |
|---|---|
boolean |
isLegalBoard(Cell[][] cells)
Helper method |
boolean |
isLegalCell(Cell val,
Cell[][] cells,
int row,
int col)
Helper method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SolvingStrategy()
| Method Detail |
|---|
public boolean isLegalCell(Cell val,
Cell[][] cells,
int row,
int col)
val - cells - row - col -
public boolean isLegalBoard(Cell[][] cells)
cells -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||