|
@@ -4,8 +4,47 @@ package rocks.zipcode.io.quiz3.arrays;
|
4
|
4
|
* @author leon on 09/12/2018.
|
5
|
5
|
*/
|
6
|
6
|
public class TicTacToe {
|
|
7
|
+ private String[][] board;
|
|
8
|
+ private Integer value;
|
|
9
|
+ private Integer rowIndex;
|
|
10
|
+ private Integer columnIndex;
|
|
11
|
+
|
|
12
|
+ public TicTacToe(){}
|
7
|
13
|
|
8
|
14
|
public TicTacToe(String[][] board) {
|
|
15
|
+ this.board = board;
|
|
16
|
+ }
|
|
17
|
+
|
|
18
|
+ public String[][] getBoard() {
|
|
19
|
+ return board;
|
|
20
|
+ }
|
|
21
|
+
|
|
22
|
+ public void setBoard(String[][] board) {
|
|
23
|
+ this.board = board;
|
|
24
|
+ }
|
|
25
|
+
|
|
26
|
+ public Integer getValue() {
|
|
27
|
+ return value;
|
|
28
|
+ }
|
|
29
|
+
|
|
30
|
+ public void setValue(Integer value) {
|
|
31
|
+ this.value = value;
|
|
32
|
+ }
|
|
33
|
+
|
|
34
|
+ public Integer getRowIndex() {
|
|
35
|
+ return rowIndex;
|
|
36
|
+ }
|
|
37
|
+
|
|
38
|
+ public void setRowIndex(Integer rowIndex) {
|
|
39
|
+ this.rowIndex = rowIndex;
|
|
40
|
+ }
|
|
41
|
+
|
|
42
|
+ public Integer getColumnIndex() {
|
|
43
|
+ return columnIndex;
|
|
44
|
+ }
|
|
45
|
+
|
|
46
|
+ public void setColumnIndex(Integer columnIndex) {
|
|
47
|
+ this.columnIndex = columnIndex;
|
9
|
48
|
}
|
10
|
49
|
|
11
|
50
|
public String[] getRow(Integer value) {
|