aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ctaklm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c
index 1ccc1d0..ea758ae 100644
--- a/src/ctaklm.c
+++ b/src/ctaklm.c
@@ -416,10 +416,11 @@ main(int argc, char **argv) {
(void)(argc);
(void)(argv);
- negamax_search_depth = 3;
+ negamax_search_depth = 2;
new_game(5);
negamax_init(5);
tt_init();
+
// Test harness
if (argc > 1) {
negamax_search_depth = 5;
@@ -447,9 +448,11 @@ main(int argc, char **argv) {
human = 1;
}
}
+ free(line);
+ line = NULL;
} else {
playing = 0;
- break;
+ human = 1;
}
}
if (playing) {
@@ -458,6 +461,9 @@ main(int argc, char **argv) {
}
}
+ free(line);
+ free(gamelog);
+
negamax_free();
return EXIT_SUCCESS;