📄 connectnconstants.java
字号:
package utility;
import java.awt.Color;
public interface ConnectNConstants {
public static int PLAYER1 = 1; // Indicate player 1
public static int PLAYER2 = 2; // Indicate player 2
public static int PLAYER1_WON = 1; // Indicate player 1 won
public static int PLAYER2_WON = 2; // Indicate player 2 won
public static int START = 0; // Indicate to start
public static int DRAW = 3; // Indicate a draw
public static int CONTINUE = 4; // Indicate to continue
public static int SECONDTIME = 5; // Indicate the second move
public static int WAITFORSECONDMOVE = 6; // Indicate to wait for a second
// move
public static final int TIMEOUT = 30;
public static final int TIMEUNIT = 1000;
public static final int CONNECT4 = 4;
public static final int CONNECT5 = 5;
public static final int ONETURN = 1;
public static final int TWOTURN = 2;
public static final Color PLAYER1COLOR = Color.BLUE;
public static final Color PLAYER2COLOR = Color.RED;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -