diff options
| author | Scott Gasch <[email protected]> | 2026-08-30 09:45:06 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2026-08-30 09:45:06 -0700 |
| commit | aab2982a2d0ba8edee64538ca26240f89b8eca25 (patch) | |
| tree | 2070b7168135117d5f418d1f674b76aa6f569880 /src/changes/main.c | |
| parent | fa210fb9645afd27e2991b3ee8139be231d0b5ec (diff) | |
Add small static penalties for trapped pieces in _EvalTrappedPieces.
Eval() already detects trapped/attacked pieces (for search hints via
RecordEnprisePieceAtPly/RecordTrappedPiece) but never penalized them in
the static score. Add two named, DNA-visible constants: a larger flag
for the opponent-to-move/imminently-capturable case, a smaller one for
the own-move/still-might-escape case -- flat "this is bad" nudges, not
an attempt to price the material outcome, which search still owns.
Verified flat on ecm_ringers/ecm_confident_quick vs head_reference at
sd 10; ecm_hard_quick's lone flip (ECM.370) is a search-instability
artifact of that specific position (its true evaluation was still
moving through depth 14 in independent runs), not a real regression.
Diffstat (limited to 'src/changes/main.c')
0 files changed, 0 insertions, 0 deletions
