|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.carlosbcruz.model.Board
public class Board
Represent a board
Constructor Summary | |
---|---|
Board()
|
Method Summary | |
---|---|
Board |
createClone()
Generate a copy of the current board. |
int |
getValue(int x,
int y)
Consult a value on a position of the board. |
boolean |
isSolved()
See if the board problem is solved. |
void |
setValue(int x,
int y,
int newValue)
Set a value in the board. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Board()
Method Detail |
---|
public void setValue(int x, int y, int newValue)
x
- rowy
- columnnewValue
- new value to be inserted in the board at x row by y columnpublic int getValue(int x, int y)
x
- rowy
- colunn
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isSolved()
public Board createClone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |