diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-23 20:48:34 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 93f66971f66c14f18aba743b6d0f8b0f557351ca (patch) | |
| tree | 1568304dd2c33e03a7ecd4b84b4ba48b03670731 /src/ctaklm.c | |
| parent | 9eb1a379853b088df0ab3a4beae4e79eaead4823 (diff) | |
Hash collisions
Diffstat (limited to 'src/ctaklm.c')
| -rw-r--r-- | src/ctaklm.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c index f7a58d9..2232bc4 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -317,7 +317,7 @@ negamax_turn(void) { // Run the minimax sum_depth = 0; num_check = 0; progress = 0; float minimax = negamax_generate(); - printf(" [%d]\n", cnn1986_num_cached); + printf(" [%d] <%d>\n", cnn1986_num_cached, cache_fails); // Failed to find a move? if (minimax < -infty) { puts("Opponent failed to find a move!"); @@ -416,19 +416,15 @@ main(int argc, char **argv) { (void)(argc); (void)(argv); - /* - * cnn1986_max_num_cached = 500; - * negamax_search_depth = 3; - * negamax_cache_threshold = 3; - * new_game(5); - */ - // Test harness negamax_search_depth = 5; new_game(5); negamax_init(5); - for (int k=0; k<2; k++) negamax_turn(); - return 0; + /* + * load_ptn("data/0.ptn"); + * for (int k=0; k<2; k++) negamax_turn(); + * return 0; + */ // Test harness char *line = NULL; |
