summaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-09-15 13:31:36 -0700
committerScott Gasch <[email protected]>2026-09-15 13:31:36 -0700
commit390e675849ff42c8b7e1806f75552de988741fff (patch)
tree17b8792aeaf74373bbaef3bac6b71bb5c0d74c69 /src/command.c
parentca73728f7dbf01c4b39c7496729f81b1fbffa00b (diff)
Rewrite _EvalKing as a linear ring-scan and promote its terms to DNA-tunable constants; retune via mate-mining regression, ElasticNet/Ridge, and logistic-vs-material refits.
Splits _EvalKing's own king-location table from CountKingSafetyDefects' search-gate copy so future eval retunes can't silently perturb extension/reduction gate frequency. Bumps KING_BACK_FLIGHT_BONUS (+1 -> +3) and reorders/nudges the ring-scan sub-terms (minor/pawn/xray/undefended) to match relative rankings that replicated across three independent calibration methods, while leaving KING_QUEEN_PROXIMITY_DANGER and KING_MISSING_ONE_CASTLE_OPTION untouched pending further discussion. Self-play (640 games) is roughly even (score 0.509, llr=+0.17, far from either SPRT bound) but consistently faster (nps candidate=1362140 vs head=1333682) at equal average depth -- landing as a wash/speed-neutral checkpoint, not a confirmed tactical improvement, for further tuning to build on. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 1696690..0662333 100644
--- a/src/command.c
+++ b/src/command.c
@@ -636,13 +636,14 @@ Return value:
Trace(" filestorm=%u filestormopenfile=%u filestormpawn=%u "
"queenproximity=%u initloc=%u countertotal=%u "
"safetyvalue=%u attackerarmyscaler=%u castled=%u minorsathome=%u "
- "misscastleshort=%u misscastlelong=%u\n",
+ "misscastleshort=%u misscastlelong=%u realsafety=%d\n",
p->uFileStormDefects, p->uFileStormOpenFile, p->uFileStormStormingPawn,
p->uQueenNearKing,
p->uInitialCounterByLocation, p->uCounterTotal,
p->uSafetyTableValue, p->uAttackerArmyScaler,
p->fCastled, p->uMinorsAtHome,
- p->fMissingCastleShort, p->fMissingCastleLong);
+ p->fMissingCastleShort, p->fMissingCastleLong,
+ p->iRealSafety);
}
}
#endif