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

📄 step.java

📁 一款JAVA款的跳棋
💻 JAVA
字号:
package org.yushang.jumpchess.strategy;
// Download:http://www.codefans.net
import org.yushang.jumpchess.pkg.Chess;
import org.yushang.jumpchess.pub.Position;

public class Step implements Comparable{
	public Chess chess = null;
	public Position position = null;
	public int Score = 0;
	public Step(Chess chess, Position position) {
		this.chess = chess;
		this.position = position;
	}
	public int compareTo(Object o) {
		return this.Score - ((Step) o).Score;		
	}
	
	public String toString() {
		return "CHESS(" + chess.getindex() + ")--->" +
		        position.toString() + " Score:[" + Score + "]";
	}
	
}

⌨️ 快捷键说明

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