summaryrefslogtreecommitdiff
path: root/src/recogn.c
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-08-23 13:12:04 -0700
committerScott Gasch <[email protected]>2026-08-23 13:12:04 -0700
commitf83f1592659a0e06182e3017aafbd84ba83935fb (patch)
tree57eb77a2ec1a137666b39b961e0bcf08444a6eef /src/recogn.c
parentdf8facc22815f9eca0897e27ccce30701ba95322 (diff)
Integrate new syzygy egtb code, lose the old Nalimov code.
Diffstat (limited to 'src/recogn.c')
-rw-r--r--src/recogn.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/recogn.c b/src/recogn.c
index c8fc856..0ab9514 100644
--- a/src/recogn.c
+++ b/src/recogn.c
@@ -1318,21 +1318,10 @@ Return value:
if (TRUE == ProbeEGTB(ctx, &iScore))
{
//
- // We have an exact score from EGTB but if it's a mate in N
- // we still have to adjust it for the present ply.
+ // Syzygy WDL probes are win/draw/loss only -- there's no
+ // mate distance to adjust for the present ply here (see
+ // EGTB_WIN_SCORE / EGTB_LOSS_SCORE in probe.c).
//
- if (iScore >= +NMATE) {
- iScore -= ctx->uPly;
- }
- else if (iScore <= -NMATE) {
- iScore += ctx->uPly;
- }
-#ifdef DEBUG
- else
- {
- ASSERT(iScore == 0); // iDrawValue[side]
- }
-#endif
*piScore = iScore;
return(RECOGN_EXACT);
}