diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-23 11:11:26 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 3f919c40804f024737bcf4da85027a980db6eb23 (patch) | |
| tree | 8d5aba947c61bd810143418ebabc289c4890f77f /src/ctaklm.c | |
| parent | e6a5b63bbeb36ff9d9d5f2c002395012a0d41fdf (diff) | |
no speed increase ...
Diffstat (limited to 'src/ctaklm.c')
| -rw-r--r-- | src/ctaklm.c | 17 |
1 files changed, 14 insertions, 3 deletions
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; |
