aboutsummaryrefslogtreecommitdiff
path: root/src/ct1986.c
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-22 13:36:32 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commite6a5b63bbeb36ff9d9d5f2c002395012a0d41fdf (patch)
tree36419c24a19ea6a7ec511cd67a54d9229d67ae1c /src/ct1986.c
parent703c875144bb365e6448b41493aa0d6615e10520 (diff)
Trying caching to speed things up
Diffstat (limited to 'src/ct1986.c')
-rw-r--r--src/ct1986.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ct1986.c b/src/ct1986.c
index 40943db..e440255 100644
--- a/src/ct1986.c
+++ b/src/ct1986.c
@@ -145,14 +145,18 @@ main(int argc, char **argv) {
if (lcd_begin() != EXIT_SUCCESS)
return EXIT_FAILURE;
- human = 0;
+ cnn1986_max_num_cached = 500;
+ negamax_cnn1986_search_depth = 3;
+ negamax_cnn1986_cache_threshold = 2;
negamax_cnn1986_search_depth = 3;
+
new_game(5);
char *line = NULL;
ssize_t read;
size_t alloc_size;
+ human = 0;
for (int playing = 1; playing;) {
while (human == 0) {
if (ply & 1) lcd_put_line(L_SCROLL, "Black: ");
@@ -177,6 +181,7 @@ main(int argc, char **argv) {
}
}
+ cnn1986_cache_free();
lcd_end();
return EXIT_SUCCESS;
}