diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-21 01:18:01 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-21 01:19:50 -0500 |
| commit | 78b0d5dc0cdedaba80f3e0acb027f0c52d549d76 (patch) | |
| tree | b27bc6f934e05b6494af8527b6b55bc554dc4c10 /include/negamax_cnn1986.h | |
| parent | e9083b590c2e6ab19511c5a7bc7d55a3b1d75aae (diff) | |
| parent | 840ddc116f91277c14007c2518534f39aeb349ac (diff) | |
Merge branch 'negamax'
Diffstat (limited to 'include/negamax_cnn1986.h')
| -rw-r--r-- | include/negamax_cnn1986.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stdint.h> +#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); |
