aboutsummaryrefslogtreecommitdiff
path: root/include/minimax_cnn1986.h
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-20 22:49:49 -0500
committertslil <tslil@posteo.de>2021-01-20 22:49:49 -0500
commitae828c3acfd53af33140c7a610813c0e32e92338 (patch)
tree2496adbdf994c0bf574fbcc62486d244d9673d8b /include/minimax_cnn1986.h
parentf23d39f1cfc1866d5b724e629a51328604b458c4 (diff)
parent4cd58d0de8d2f03dfaca511deaed82a8b3cc6a71 (diff)
Merge branch 'pi'
Diffstat (limited to 'include/minimax_cnn1986.h')
-rw-r--r--include/minimax_cnn1986.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/minimax_cnn1986.h b/include/minimax_cnn1986.h
new file mode 100644
index 0000000..3ccc004
--- /dev/null
+++ b/include/minimax_cnn1986.h
@@ -0,0 +1,28 @@
+#include <stdint.h>
+#include "tak.h"
+#include "weights.h"
+
+extern const float infty;
+extern char ct1986_ptn[9];
+extern inline 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_generate(const uint8_t max_depth);
+
+// Access to the internal method
+float
+ct1986_minimax(const uint8_t cur_depth, const uint8_t max_depth,
+ const uint8_t min, float alpha, float beta);
+
+extern char ct1986_ptn[9];
+extern float ct1986_optimal;
+
+
+void
+ct1986_generate_ptn(void display_progress(void));