Compare commits

..

5 Commits
main ... zh

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -101,7 +101,7 @@ int gx=-1;int gy=-1;
if (cor)//开始
{
int x = e.getX();
int y = e.getY();
int y = e.getY()
x = x - 50;
y = y - 50;
int m = x / 30;
@ -118,7 +118,8 @@ int gx=-1;int gy=-1;
// System.out.println(gx+" "+gy+"第一个");
ref++;
}
} else {
} else
{
if(a[n+1][m]==0){
a[n + 1][m] = 1;
gx=n+1;gy=m;
@ -450,7 +451,7 @@ int gx=-1;int gy=-1;
System.out.println();
}
}
//认输事件
//认输事件
private class concede implements ActionListener{
@Override

@ -17,7 +17,7 @@ public class window extends JFrame{
set();
setVisible(true);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
} pen p=new pen();
}
public void set()
{
@ -25,7 +25,7 @@ public class window extends JFrame{
Font font = new Font("华文行楷", Font.BOLD, 16);
jb1.setFont(font);
//调用内部类
pen p=new pen();
//
JButton jb3=new JButton("认输");
jb1.addActionListener(new startgame());

Loading…
Cancel
Save