From cf7d665598e34e32d258775b583968e758c8f2fb Mon Sep 17 00:00:00 2001 From: tslil Date: Wed, 13 Jan 2021 23:41:32 -0500 Subject: Fixed minimax (!), fixed bugs in tak.c With minimax of depth 1 the evaluation function seems alright with the current method of training and generating weights --- src/ctaklm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ctaklm.c') diff --git a/src/ctaklm.c b/src/ctaklm.c index 4060911..9d0f867 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -366,7 +366,7 @@ main(int argc, char **argv) { int r = handle_turn(line); if (r == EXIT_SUCCESS && won == 0xFF) { fputs("Thinking [", stdout); - float minimax = ct1986_minimax(0, 2, 0); + float minimax = ct1986_minimax(0, 1, 0); printf("] Result: %s (%.3f)\n", ct1986_ptn, minimax*100.0); -- cgit v1.3.1