回答編集履歴
1
コード化
test
CHANGED
@@ -1 +1,49 @@
|
|
1
1
|
各定数にstaticが足りません。
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
```java
|
6
|
+
|
7
|
+
package othello;
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
import java.awt.Color;
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
public class CommonConstants {
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
// 一つのマスの大きさ
|
20
|
+
|
21
|
+
public static final int SIZE = 100;
|
22
|
+
|
23
|
+
//マスの数
|
24
|
+
|
25
|
+
public static final int MASS = 8;
|
26
|
+
|
27
|
+
// 縦の幅
|
28
|
+
|
29
|
+
public static final int HEGHT = SIZE * MASS;
|
30
|
+
|
31
|
+
// 横の幅
|
32
|
+
|
33
|
+
public static final int WIDETH = SIZE * MASS;
|
34
|
+
|
35
|
+
// ボードの色
|
36
|
+
|
37
|
+
public static final Color BOARDCOLOR = Color.GREEN;
|
38
|
+
|
39
|
+
// ボードの線の色
|
40
|
+
|
41
|
+
public static final Color LINECOLOR = Color.BLACK;
|
42
|
+
|
43
|
+
//配列の大きさ
|
44
|
+
|
45
|
+
public static final int [][] BOARD_ARRAY = new int[MASS][MASS];
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
```
|