From 18496a371a2204e8c1b448921a87108f4aa7ada3 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Sat, 23 Jan 2021 18:20:05 -0500 Subject: Attempting Zobrist hashing --- include/negamax.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/negamax.h (limited to 'include/negamax.h') diff --git a/include/negamax.h b/include/negamax.h new file mode 100644 index 0000000..fbdf8da --- /dev/null +++ b/include/negamax.h @@ -0,0 +1,19 @@ +#include +#include +#include +#include +#include + +extern const float infty; +extern char negamax_ptn[9]; +extern uint8_t negamax_search_depth; +extern inline void negamax_display_progress(const uint8_t); + +void negamax_init_size(void); +uint64_t negamax_compute_zobrist(void); + +// Do negamax to depth negamax_search_depth and return PTN of best move +// in negamax_ptn, along with its value as the return. The +// negamax_display_progress function is called on every new square at +// the top level. +float negamax_generate(void); -- cgit v1.2.3