|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.carlosbcruz.engine.BoardAnalysis
public class BoardAnalysis
Analyze what solutions can be found a specific board.
Nested Class Summary | |
---|---|
class |
BoardAnalysis.CurrentPossibility
Indicate a possibility that was applied. |
Constructor Summary | |
---|---|
BoardAnalysis(Board newBoard)
Receives a board to work on. |
Method Summary | |
---|---|
BoardAnalysis.CurrentPossibility |
applyNextPossibility(BoardAnalysis.CurrentPossibility currentPossibility)
Apply the next value on the possibility array of a specific position |
boolean |
isValid()
Analyze if the board is a valid one. |
BoardAnalysis.CurrentPossibility |
setValueFromShorterPossibilitie()
Select the row and column with shorter number of possibilities and apply the first value to the board. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BoardAnalysis(Board newBoard)
newBoard
- Method Detail |
---|
public boolean isValid()
public BoardAnalysis.CurrentPossibility setValueFromShorterPossibilitie()
public BoardAnalysis.CurrentPossibility applyNextPossibility(BoardAnalysis.CurrentPossibility currentPossibility)
currentPossibility
- The class that indicates the previous possibility
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |