aboutsummaryrefslogtreecommitdiff
path: root/src/ctaklm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctaklm.c')
-rw-r--r--src/ctaklm.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c
index e80dd82..bc35c75 100644
--- a/src/ctaklm.c
+++ b/src/ctaklm.c
@@ -301,7 +301,7 @@ inline void
negamax_display_progress(const uint8_t depth) {
sum_depth += depth;
num_check += 1;
- if (depth == 0) {
+ if (depth == negamax_search_depth) {
progress++;
printf("\x1B[1GComputing: %.0f%%",
(progress*100)/(board_size*board_size));
@@ -416,13 +416,15 @@ main(int argc, char **argv) {
(void)(argc);
(void)(argv);
- // Test harness
- negamax_search_depth = 5;
+ negamax_search_depth = 4;
new_game(5);
negamax_init(5);
+ tt_init();
+ // Test harness
+ if (argc > 1) {
load_ptn("data/0.ptn");
- for (int k=0; k<2; k++) negamax_turn();
- return 0;
+ negamax_turn();
+ return 0; }
// Test harness
char *line = NULL;