From 718b116c05ef36215f6c6db79a4013f26a96b985 Mon Sep 17 00:00:00 2001 From: tslil Date: Thu, 14 Jan 2021 00:33:42 -0500 Subject: Trying alpha-beta pruning. There's a bug somewhere ... --- include/ct1986.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/ct1986.h') diff --git a/include/ct1986.h b/include/ct1986.h index 877c301..ef56c1f 100644 --- a/include/ct1986.h +++ b/include/ct1986.h @@ -11,9 +11,13 @@ 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); + const uint8_t min, float alpha, float beta); extern char ct1986_ptn[9]; extern float ct1986_optimal; -- cgit v1.3.1