import java.awt.*; import java.awt.event.*; import java.applet.Applet; import java.awt.Color; public class GoBang extends Applet implements ActionListener, MouseListener, MouseMotionListener, ItemListener { int color = 0;// 旗子的颜色标识 0:白子 1:黑子 boolean isStart = false;// 游戏开始标志 int bodyArray[][