質問編集履歴
1
クラスの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
```java
|
1
|
+
``````java
|
2
2
|
|
3
3
|
package othello;
|
4
4
|
|
@@ -76,4 +76,52 @@
|
|
76
76
|
|
77
77
|
```
|
78
78
|
|
79
|
+
```java
|
80
|
+
|
81
|
+
package othello;
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
import java.awt.Color;
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
public class CommonConstants {
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
// 一つのマスの大きさ
|
94
|
+
|
95
|
+
public final int SIZE = 100;
|
96
|
+
|
97
|
+
//マスの数
|
98
|
+
|
99
|
+
public final int MASS = 8;
|
100
|
+
|
101
|
+
// 縦の幅
|
102
|
+
|
103
|
+
public final int HEGHT = SIZE * MASS;
|
104
|
+
|
105
|
+
// 横の幅
|
106
|
+
|
107
|
+
public final int WIDETH = SIZE * MASS;
|
108
|
+
|
109
|
+
// ボードの色
|
110
|
+
|
111
|
+
public final Color BOARDCOLOR = Color.GREEN;
|
112
|
+
|
113
|
+
// ボードの線の色
|
114
|
+
|
115
|
+
public final Color LINECOLOR = Color.BLACK;
|
116
|
+
|
117
|
+
//配列の大きさ
|
118
|
+
|
119
|
+
public final int [][] BOARD_ARRAY = new int[MASS][MASS];
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
```
|
126
|
+
|
79
127
|
import staticを使用してみたのですが、定数にクラスがないと使用できません。何か足りないものがありますでしょうか?
|