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

📄 gobang.as

📁 Flash之五子棋之源代码
💻 AS
字号:
import BoardSituationLink;
import flash.geom.*;
class GoBang {
	public var CountList:BoardSituationLink;
	static var winer = 0;
	static var pieceCount = 0;
	static var gameover = false;
	static var hPiece="blackPiece";
	static var cPiece="whitePiece";
	public function GoBang() {
		this.CountList = new BoardSituationLink();
	}
	public function isPossessed(m:Number, n:Number):Boolean {
		if (this.CountList.isPossessed(m, n) == 0) {
			return false;
		} else {
			return true;
		}
	}
	public function humenGo(m:Number, n:Number):Boolean {
		if (this.CountList.humenGo(m, n, 1)) {
			return true;
		} else {
			return false;
		}
	}
	public function computeGo(m:Number, n:Number):Point {
		return this.CountList.computeGo();
	}
	public function init() {
		GoBang.gameover = false;
		GoBang.winer = 0;
		GoBang.pieceCount = 0;
		return this.CountList.init();
	}
	public function back():Number {
		return this.CountList.back();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -