Compare commits
46 Commits
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.
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.
@ -0,0 +1,12 @@
|
||||
package game;
|
||||
|
||||
|
||||
//定义config接口
|
||||
|
||||
//定义与棋盘数据相关的接口,保存棋盘的起点,格子大小,行数列数等信息
|
||||
|
||||
public interface config {
|
||||
|
||||
int x=20,y=20,size=40,row=19,column=19;
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package game;
|
||||
|
||||
//新建一个棋子类ChessPosition保存每一步棋子所在的位置
|
||||
public class position {
|
||||
public int Listi,Listj;
|
||||
|
||||
public position() {
|
||||
|
||||
}
|
||||
public position(int Listi, int Listj) {
|
||||
this.Listi=Listi;
|
||||
this.Listj=Listj;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Loading…
Reference in new issue