aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-17 23:33:13 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit28e1df6d45fb04cbc5e25bd079098c9682ac8b0c (patch)
tree2c4166620b3babd078d003c7695307d4de94914c
parentb1d677fa134741527669b93a77810cf01dd34de5 (diff)
Opps, wrong stone
-rw-r--r--include/ct1986.c4
-rw-r--r--src/ctaklm.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/ct1986.c b/include/ct1986.c
index 9289d2f..97be8e5 100644
--- a/include/ct1986.c
+++ b/include/ct1986.c
@@ -307,9 +307,9 @@ ct1986_minimax(const uint8_t cur_depth, const uint8_t max_depth,
if (black) black_count &= 127;
else white_count &= 127;
colours[loc] = current_colour;
- celldat[loc] = NUM_INC | STONE_STANDING;
+ celldat[loc] = NUM_INC | STONE_CAPSTONE;
WIN_EVALUATE_OR_RECURSE({
- generate_place(loc, STONE_STANDING, ct1986_ptn);
+ generate_place(loc, STONE_CAPSTONE, ct1986_ptn);
});
celldat[loc] = 0;
if (black) black_count |= 128;
diff --git a/src/ctaklm.c b/src/ctaklm.c
index d2208a0..443e1dc 100644
--- a/src/ctaklm.c
+++ b/src/ctaklm.c
@@ -320,7 +320,7 @@ ct1986_turn(const uint8_t max_depth) {
// Run the minimax
sum_depth = 0; num_check = 0;
float minimax = ct1986_generate(max_depth);
- printf("]\nChecked %.0f AvgD %.2f, ",
+ printf("] (%.0f, %.2f)\n",
num_check, sum_depth/num_check);
// Failed to find a move?
if ((minimax <= -infty && (ply & 1) == 1)