From 9fa3291044ff8d9f0f2b9c9a01cd210bf318ab74 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Thu, 21 Jan 2021 01:16:20 -0500 Subject: Many fixes, i think this is actually correct --- include/negamax_cnn1986.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/negamax_cnn1986.h (limited to 'include/negamax_cnn1986.h') diff --git a/include/negamax_cnn1986.h b/include/negamax_cnn1986.h new file mode 100644 index 0000000..411d877 --- /dev/null +++ b/include/negamax_cnn1986.h @@ -0,0 +1,18 @@ +#include +#include "tak.h" +#include "weights.h" + +extern const float infty; +extern char ct1986_ptn[9]; +extern uint8_t ct1986_search_depth; +extern inline void ct1986_display_progress(const uint8_t); + +// Do negamax to depth ct1986_search_depth and return PTN of best move +// in ct1986_ptn, along with its value as the return. The +// ct1986_display_progress function is called on every new square at +// the top level. +float ct1986_generate(void); + +// Internal utility function +float +ct1986_evaluate_black_win(void); -- cgit v1.3.1