📄 strategy.java
字号:
package org.yushang.jumpchess.strategy;
// Download:http://www.codefans.net
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 + -