未验证 提交 9a6d9479 编写于 作者: G GreedyStar 提交者: GitHub

利用极小极大搜索和alpha-beta剪枝算法预测五子棋对弈落子

上级 cc32a371
此差异已折叠。
package Gomoku;
/**
* Author ZhangHaoxiang
* Date 2017/11/4
*/
public class Node {
public int p; // 落子方(玩家or AI)
public int x; // 落子坐标x
public int y; // 落子坐标y
public Node() {
}
public Node(int p, int x, int y) {
this.p = p;
this.x = x;
this.y = y;
}
public Node(Node node) {
this.p = node.p == Main.AI ? Main.PLAYER : Main.AI;
this.x = node.x;
this.y = node.y;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册