diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-23 11:11:26 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-23 11:11:26 -0500 |
| commit | c4734ea4771b8f82948875266c84d038e2820d3d (patch) | |
| tree | 8d5aba947c61bd810143418ebabc289c4890f77f /src/ctaklm.c | |
| parent | bf01bc73e7f285038b229f15e672b2cdb6a22e9d (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; |
