aboutsummaryrefslogtreecommitdiff
path: root/include/negamax.h
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-23 18:20:05 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit18496a371a2204e8c1b448921a87108f4aa7ada3 (patch)
treea2a0882c46882f40cd00906e59f52a0a0118a794 /include/negamax.h
parent2439dc2ab6a6c2a840c2d2c1deb3949b7b88f415 (diff)
Attempting Zobrist hashing
Diffstat (limited to 'include/negamax.h')
-rw-r--r--include/negamax.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/negamax.h b/include/negamax.h
new file mode 100644
index 0000000..fbdf8da
--- /dev/null
+++ b/include/negamax.h
@@ -0,0 +1,19 @@
+#include <stdint.h>
+#include <tak.h>
+#include <xorshift64.h>
+#include <cnn1986.h>
+#include <cnn1986_treap_cache.h>
+
+extern const float infty;
+extern char negamax_ptn[9];
+extern uint8_t negamax_search_depth;
+extern inline void negamax_display_progress(const uint8_t);
+
+void negamax_init_size(void);
+uint64_t negamax_compute_zobrist(void);
+
+// Do negamax to depth negamax_search_depth and return PTN of best move
+// in negamax_ptn, along with its value as the return. The
+// negamax_display_progress function is called on every new square at
+// the top level.
+float negamax_generate(void);