update
This commit is contained in:
@@ -9,15 +9,16 @@
|
||||
|
||||
namespace Search {
|
||||
|
||||
const int kPosInfinity = std::numeric_limits<int>::max();
|
||||
const int kNegInfinity = std::numeric_limits<int>::min();
|
||||
|
||||
struct Node {
|
||||
explicit Node(const Move move) : move(move) {
|
||||
explicit Node(const Move &move) : move(move) {
|
||||
}
|
||||
|
||||
Node(Node &node) : move(node.move) {
|
||||
next = std::move(node.next);
|
||||
value = node.value + 10;
|
||||
value = node.value;
|
||||
}
|
||||
std::unique_ptr<Node> next;
|
||||
Move move;
|
||||
@@ -30,7 +31,7 @@ struct RootNode {
|
||||
int value = kNegInfinity;
|
||||
};
|
||||
|
||||
int search(Node *node, const Board &board, unsigned depth);
|
||||
int search(Node *node, const Board &board, unsigned depth, int alpha, int beta);
|
||||
PrincipalVariation start(const Board &board);
|
||||
int evaluate(const Board &board);
|
||||
}
|
||||
|
Reference in New Issue
Block a user