diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-18 21:41:08 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 04ec088dfcbdf577987fe7ef93624d67e6d9c2e3 (patch) | |
| tree | 5f43345251524a5c5a4f43bddb5ff08553d76e1b /src/ctaklm.c | |
| parent | ffecb8f5ae15d6713cc1bad470608ecd205a90f3 (diff) | |
Multiplatform builds!
Diffstat (limited to 'src/ctaklm.c')
| -rw-r--r-- | src/ctaklm.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c index ff5b8b0..f1bb7cd 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -146,12 +146,9 @@ print_info(void) { (ply & 1) ? "Black" : "White", rst, (ply < 2) ? " (counter-play start)" : ""); - printf("Flats remaining: %s%02d%s, %s%02d%s\n", - wht,white_count & 127,rst, - blk,black_count & 127,rst); - printf("Caps remaining: %s%d%s, %s%d%s\n", - wht,white_count >> 7,rst, - blk,black_count >> 7,rst); + printf("Flats/Caps remaining: %s%02d/%d%s, %s%02d/%d%s\n", + wht, white_count & 127, white_count >> 7, rst, + blk, black_count & 127, black_count >> 7, rst); } static char *gamelog = 0; @@ -314,12 +311,12 @@ ct1986_turn(const uint8_t search_depth) { // Prepare progress bar fputs("Computing [", stdout); for (int k = 0; k < board_size * board_size; k++) putchar(' '); - fputs("]\033[26D",stdout); + fputs("] \033[s\033[27D",stdout); fflush(stdout); // Run the minimax sum_depth = 0; num_check = 0; float minimax = ct1986_generate(search_depth); - puts("]\033[1C"); + fputs("\033[u", stdout); // Failed to find a move? if ((minimax <= -infty && (ply & 1) == 1) ||(minimax >= infty && (ply & 1) == 0)) { |
