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

📄 testpreeval.java

📁 J2ME编写的完整国际象棋程序
💻 JAVA
字号:
package chess;

public class TestPreEval {
	public static void main(String[] args) {
		Position pos = new Position();
		pos.fromFen("8/7p/5k2/5p2/p1p2P2/Pr1pPK2/1P1R3P/8 b - - bm Rxb2; id WAC002;");
		pos.printBoard();
		Evaluate.preEval(pos);
		for (int y = Position.RANK_TOP; y <= Position.RANK_BOTTOM; y ++) {
			for (int x = Position.FILE_LEFT; x <= Position.FILE_RIGHT; x ++) {
				int sq = Position.COORD_XY(x, y);
				System.out.print(pos.vlWhitePiecePos[5][sq] + "\t");
			}
			System.out.println();
		}
		System.out.println("vlWhite = " + pos.vlWhite);
		System.out.println("vlBlack = " + pos.vlBlack);
	}
}

⌨️ 快捷键说明

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