aboutsummaryrefslogtreecommitdiff
path: root/include/negamax.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/negamax.h')
-rw-r--r--include/negamax.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/negamax.h b/include/negamax.h
index e31cc32..78ed448 100644
--- a/include/negamax.h
+++ b/include/negamax.h
@@ -1,5 +1,5 @@
/*
- This file is part of ct.
+ This file is part of ctak.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -12,7 +12,7 @@
General Public License for more details.
You should have received a copy of the GNU General Public License
- along with ct. If not, see <https://www.gnu.org/licenses/>.
+ along with ctak. If not, see <https://www.gnu.org/licenses/>.
*/
#include <math.h>
@@ -21,7 +21,7 @@
#include <actions.h>
#include <nn.h>
#include <tak.h>
-#include <tt_llcht.h>
+#include <tt.h>
#include <zobrist.h>
// ===================================================================
@@ -42,6 +42,13 @@ extern void negamax_display_progress(const uint8_t cur_depth,
void negamax_init(const uint8_t new_board_size);
+/*
+ * Override the leaf evaluation function (negamax_init picks one by
+ * board size).
+ */
+typedef float (*nn_function)(tak_state_p);
+void negamax_set_evaluator(const nn_function f);
+
void negamax_free(void);
/*