From 4ce6a76b0946e4ba943d29c506c9e2fb00601efd Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 27 Aug 2026 07:41:41 -0700 Subject: Baseline: uPositional data-calibrated fix, enprise/trapped hints, EBF/beta-cutoff/counter-move stats, script.c FPE fix. No LMR, no counter-move-driven move ordering (both explored separately, kept out for now -- counter-move measured worse, ~655->647 solved on ecm879 @ sn=4M with a leaner tree beforehand). Futility pruning restored. Verified: 647/879 solved, EBF 4.609 @ sn=4M; 684/879 solved, EBF 3.995 @ 20s/move, 1cpu, 256m hash (typhoon_baseline.log). The counter-move table is still written and its stats still tracked (dynamic.c) for diagnostic purposes, but generate.c no longer reads it for move ordering, so it has no effect on search behavior in this commit. lmr_testing/ holds the in-flight graded-LMR + counter-move code (not applied here) with notes on what was already tried and measured, so a future session can resume without re-deriving it. --- src/data.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/data.c') diff --git a/src/data.c b/src/data.c index af43fd0..2631d3a 100755 --- a/src/data.c +++ b/src/data.c @@ -57,8 +57,8 @@ DistanceBetweenSquares(COOR a, COOR b) ASSERT(IS_ON_BOARD(b)); ASSERT((i >= 0) && (i < 256)); ASSERT(g_uDistance[i] == REAL_DISTANCE(a, b)); - ASSERT(g_pDistance[a - b] == g_uDistance[i]); - ASSERT(g_pDistance[b - a] == g_uDistance[i]); + ASSERT(g_pDistance[(int)a - (int)b] == g_uDistance[i]); + ASSERT(g_pDistance[(int)b - (int)a] == g_uDistance[i]); ASSERT(g_uDistance[j] == REAL_DISTANCE(a, b)); return(REAL_DISTANCE(a, b)); } @@ -586,12 +586,12 @@ InitializeDistanceTable(void) if (!IS_ON_BOARD(y)) continue; i = (int)x - (int)y + 128; ASSERT(g_uDistance[i] == REAL_DISTANCE(x, y)); - ASSERT(g_pDistance[x - y] == g_uDistance[i]); - ASSERT(&(g_pDistance[x - y]) == &(g_uDistance[i])); + ASSERT(g_pDistance[(int)x - (int)y] == g_uDistance[i]); + ASSERT(&(g_pDistance[(int)x - (int)y]) == &(g_uDistance[i])); j = (int)y - (int)x + 128; ASSERT(g_uDistance[j] == REAL_DISTANCE(x, y)); - ASSERT(g_pDistance[y - x] == g_uDistance[j]); - ASSERT(&(g_pDistance[y - x]) == &(g_uDistance[j])); + ASSERT(g_pDistance[(int)y - (int)x] == g_uDistance[j]); + ASSERT(&(g_pDistance[(int)y - (int)x]) == &(g_uDistance[j])); } } #endif -- cgit v1.3