回答編集履歴
1
コード化
answer
CHANGED
@@ -1,1 +1,25 @@
|
|
1
|
-
各定数にstaticが足りません。
|
1
|
+
各定数にstaticが足りません。
|
2
|
+
|
3
|
+
```java
|
4
|
+
package othello;
|
5
|
+
|
6
|
+
import java.awt.Color;
|
7
|
+
|
8
|
+
public class CommonConstants {
|
9
|
+
|
10
|
+
// 一つのマスの大きさ
|
11
|
+
public static final int SIZE = 100;
|
12
|
+
//マスの数
|
13
|
+
public static final int MASS = 8;
|
14
|
+
// 縦の幅
|
15
|
+
public static final int HEGHT = SIZE * MASS;
|
16
|
+
// 横の幅
|
17
|
+
public static final int WIDETH = SIZE * MASS;
|
18
|
+
// ボードの色
|
19
|
+
public static final Color BOARDCOLOR = Color.GREEN;
|
20
|
+
// ボードの線の色
|
21
|
+
public static final Color LINECOLOR = Color.BLACK;
|
22
|
+
//配列の大きさ
|
23
|
+
public static final int [][] BOARD_ARRAY = new int[MASS][MASS];
|
24
|
+
}
|
25
|
+
```
|