applications
Class Chessboard
java.lang.Object
|
+--applications.Chessboard
- public class Chessboard
- extends java.lang.Object
Method Summary |
static void |
main(java.lang.String[] args)
test tileBoard |
void |
outputBoard(int size)
output the tiled chessboard |
void |
tileBoard(int topRow,
int topColumn,
int defectRow,
int defectColumn,
int size)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Chessboard
public Chessboard(int size)
tileBoard
public void tileBoard(int topRow,
int topColumn,
int defectRow,
int defectColumn,
int size)
- Parameters:
topRow
- is row number of top-left corner of boardtopColumn
- is column number of top-left corner of boarddefectRow
- is row number of defective squaredefectColumn
- is column number of defective squaresize
- is length of one side of chess board
outputBoard
public void outputBoard(int size)
- output the tiled chessboard
main
public static void main(java.lang.String[] args)
- test tileBoard