summaryrefslogtreecommitdiff
path: root/include/ct1986.h
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2021-01-13 16:39:16 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit2ef0078ba2afd99c4fc2673497f3d3a39119cf5d (patch)
tree3f3c791ee9b0136270f6cae2de3d96fce18e6a5c /include/ct1986.h
parentaff5fe7f343194366beeda700a2f4a383e40fa73 (diff)
Trying minimax
Diffstat (limited to 'include/ct1986.h')
-rw-r--r--include/ct1986.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/ct1986.h b/include/ct1986.h
new file mode 100644
index 0000000..877c301
--- /dev/null
+++ b/include/ct1986.h
@@ -0,0 +1,23 @@
+#include <stdint.h>
+#include "tak.h"
+#include "weights.h"
+
+extern char ct1986_ptn[9];
+extern void (*ct1986_display_progress)(const uint8_t);
+
+float
+ct1986_evaluate_black_win(void);
+
+// Generate PTN of the ````best'''' action and store it in ct1986_ptn,
+// along with its value as the return. The ct1986_display_progress
+// function pointer is called on every new square.
+float
+ct1986_minimax(const uint8_t cur_depth, const uint8_t max_depth,
+ const uint8_t min);
+
+extern char ct1986_ptn[9];
+extern float ct1986_optimal;
+
+
+void
+ct1986_generate_ptn(void display_progress(void));