-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoard.java
More file actions
15 lines (14 loc) · 1.05 KB
/
Board.java
File metadata and controls
15 lines (14 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Board {
String[][] chessBoard = {{" ", "Col1", "Col2", "Col3", "Col4", "Col5", "Col6", "Col7", "Col8"},
{"Row1", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|"},
{"Row2", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|"},
{"Row3", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|"},
{"Row4", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|"},
{"Row5", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|"},
{"Row6", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|"},
{"Row7", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|"},
{"Row8", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|", "|__|"}};
public void chessBoardSetter(int arrayIndex, int indexInArray, String newValue) {
this.chessBoard[arrayIndex][indexInArray] = newValue;
}
}