⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 goboardmodel.java

📁 java 开发的围棋打谱程序 可供大家做参考
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -