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

Delete Node.java

上级 9e876c72
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.
先完成此消息的编辑!
想要评论请 注册