diff options
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; |
