From 3f919c40804f024737bcf4da85027a980db6eb23 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Sat, 23 Jan 2021 11:11:26 -0500 Subject: no speed increase ... --- src/ctaklm.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ctaklm.c b/src/ctaklm.c index 44428c8..aaeddde 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -416,10 +416,21 @@ main(int argc, char **argv) { (void)(argc); (void)(argv); - cnn1986_max_num_cached = 500; - negamax_cnn1986_search_depth = 3; - negamax_cnn1986_cache_threshold = 3; + /* + * cnn1986_max_num_cached = 500; + * negamax_cnn1986_search_depth = 3; + * negamax_cnn1986_cache_threshold = 3; + * new_game(5); + */ + + // Test harness + negamax_cnn1986_cache_threshold = atoi(argv[1]); + cnn1986_max_num_cached = atoi(argv[2]); + negamax_cnn1986_search_depth = 4; new_game(5); + for (int k=0; k<8; k++) negamax_cnn1986_turn(); + return 0; + // Test harness char *line = NULL; ssize_t read = -1; -- cgit v1.2.3