blob: 30028372ae362ccfdd4e8833297fe19f1aae7de1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <stdint.h>
#include <tak.h>
#include <cnn1986_cache.h>
#include "weights.h"
extern const float infty;
extern char negamax_cnn1986_ptn[9];
extern uint8_t negamax_cnn1986_search_depth;
extern uint8_t negamax_cnn1986_cache_threshold;
extern inline void negamax_cnn1986_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 negamax_cnn1986_generate(void);
// Internal utility function
float cnn1986_evaluate_black_win(void);
|