aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-24 21:31:59 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commitcb143299411851667a8e3aae4d7a55f729694b12 (patch)
tree3add82c4e7a893d0a7068b59d91033c861d05e2e /src
parentcf921b2e647136dc34568e0fff78b67c14c8e2fa (diff)
This is the basic idea, there's ≥ 1 bug (generates illegals...)
Diffstat (limited to 'src')
-rw-r--r--src/ctaklm.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c
index bc35c75..1ccc1d0 100644
--- a/src/ctaklm.c
+++ b/src/ctaklm.c
@@ -416,15 +416,17 @@ main(int argc, char **argv) {
(void)(argc);
(void)(argv);
- negamax_search_depth = 4;
+ negamax_search_depth = 3;
new_game(5);
negamax_init(5);
tt_init();
// Test harness
if (argc > 1) {
- load_ptn("data/0.ptn");
- negamax_turn();
- return 0; }
+ negamax_search_depth = 5;
+ load_ptn("data/0.ptn");
+ negamax_turn();
+ return 0;
+ }
// Test harness
char *line = NULL;
@@ -456,5 +458,7 @@ main(int argc, char **argv) {
}
}
+ negamax_free();
+
return EXIT_SUCCESS;
}