diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-24 19:06:49 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | cf921b2e647136dc34568e0fff78b67c14c8e2fa (patch) | |
| tree | 63f2a46fbb131d2390cddb13a5f69e8c03a91cb7 /src | |
| parent | 815cde44e5060ad093347bb47fc66d41c9d3a3ed (diff) | |
Working on action lists to refactor
Diffstat (limited to 'src')
| -rw-r--r-- | src/ctaklm.c | 12 |
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; |
