simplebackgammonagent.java
来自「人工智能_bachgammonagent」· Java 代码 · 共 15 行
JAVA
15 行
//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 + =
减小字号Ctrl + -
显示快捷键?