aboutsummaryrefslogtreecommitdiff
path: root/src/ctaklm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctaklm.c')
-rw-r--r--src/ctaklm.c17
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;