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

📄 strategy.java

📁 JAVA编写的跳棋游戏 是一个eclipse的工程, 现在是最新版本: 1.修改电脑的智力,难度更高,要战胜电脑?你有10%的机会 2.现在支持多个玩家游戏(将来支持网络游戏) 3.下
💻 JAVA
字号:
package org.yushang.jumpchess.strategy;

import org.yushang.jumpchess.pkg.ChessBoard;
import org.yushang.jumpchess.pkg.Player;
import org.yushang.jumpchess.pkg.VirtualChessBoard;

public abstract class Strategy {	
	protected ChessBoard chessBoard = null;
	protected Player player = null;
	
	Strategy(ChessBoard chessBoard, Player player) {
		this(chessBoard, player, null);
	}
	
	Strategy(ChessBoard chessBoard, Player player, Step step) {
		ChessBoard ch = chessBoard;
		if (step != null) {
		 ch = new VirtualChessBoard(chessBoard, step);
		}
		this.chessBoard = ch;
		this.player = player;		
	}
	
	public abstract int CalculateScore();

}

⌨️ 快捷键说明

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