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

📄 simplebackgammonagent.java

📁 人工智能_bachgammonagent
💻 JAVA
字号:
//package bkgm;
/* A backgammon agent that just takes the first possible move.
 * Actually is not too bad an agent, if it is the right player number.
 */
public class SimpleBackgammonAgent extends BackgammonAgent {
    public SimpleBackgammonAgent(int my_player_num) {
	super(my_player_num);
    }

    public Move chooseMove(BackgammonBoard b) {
	MoveSet ms = b.getValidMoves(player_num);
	return ms.getMove(0);
    }
}

⌨️ 快捷键说明

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