質問編集履歴
1
クラスの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
```java
|
1
|
+
``````java
|
2
2
|
package othello;
|
3
3
|
|
4
4
|
import java.awt.Color;
|
@@ -37,4 +37,28 @@
|
|
37
37
|
}
|
38
38
|
|
39
39
|
```
|
40
|
+
```java
|
41
|
+
package othello;
|
42
|
+
|
43
|
+
import java.awt.Color;
|
44
|
+
|
45
|
+
public class CommonConstants {
|
46
|
+
|
47
|
+
// 一つのマスの大きさ
|
48
|
+
public final int SIZE = 100;
|
49
|
+
//マスの数
|
50
|
+
public final int MASS = 8;
|
51
|
+
// 縦の幅
|
52
|
+
public final int HEGHT = SIZE * MASS;
|
53
|
+
// 横の幅
|
54
|
+
public final int WIDETH = SIZE * MASS;
|
55
|
+
// ボードの色
|
56
|
+
public final Color BOARDCOLOR = Color.GREEN;
|
57
|
+
// ボードの線の色
|
58
|
+
public final Color LINECOLOR = Color.BLACK;
|
59
|
+
//配列の大きさ
|
60
|
+
public final int [][] BOARD_ARRAY = new int[MASS][MASS];
|
61
|
+
}
|
62
|
+
|
63
|
+
```
|
40
64
|
import staticを使用してみたのですが、定数にクラスがないと使用できません。何か足りないものがありますでしょうか?
|