diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-18 23:14:12 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 82d679ab5fa43c33ae52fe7b66d7c358f6046a45 (patch) | |
| tree | fdb42bd3647c7c2934ec29d32aedbdf8b16d28fe /include/minimax_cnn1986.h | |
| parent | 10dcfac23be0a8cab39efaaf63abecf098c993db (diff) | |
First steps towards character LCD
Diffstat (limited to 'include/minimax_cnn1986.h')
| -rw-r--r-- | include/minimax_cnn1986.h | 28 |
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..3f2568d --- /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 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)); |
