goboardmodel.java
来自「java 开发的围棋打谱程序 可供大家做参考」· Java 代码 · 共 70 行
JAVA
70 行
package org.nebula.goapplet;
import org.nebula.cwt.grid.GridModel;
public interface GoBoardModel {
public final static int MAX_BOARD_SIZE = 19;
public final static int DEFAULT_BOARD_SIZE = 13;
public final static int MIN_BOARD_SIZE = 9;
/**
* property get board size
*/
public int getBoardSize();
/**
* property get point state
*/
public GoPoint getPoint(int x, int y);
// -------------------- Play Interface----------------------------------
public GridModel getGridModel();
/**
* execute a remove action
*
*/
public void performRemove(int x, int y) throws GoException;
/**
* execute a put action
*/
public void performPut(int x, int y, int player) throws GoException;
public void forceRemove(int x, int y);
public void forcePut(int x, int y, int state);
public void setTip(int col, int row, int tip);
public void setNumber(int col, int row, int number);
/**
* undo a action
*/
public void undo();
/**
* get the action just performed
*/
public Movement getLastMovement();
public int getMovementCount();
/**
* divide domain to black side and white side empty body blong to it's
* closest neibor; if one empty body's neibor don't have same color, it's in
* neutrality
*/
// public void divideDomain();
/**
* clear domain mark so that no point show mark
*/
// public void clearDomainMarks();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?