Skip to content

Fix 50mr scaling interaction with TT - #380

Merged
kevlu8 merged 1 commit into
mainfrom
50mr-scale-fix
Oct 23, 2026
Merged

kevlu8 merged 1 commit into
mainfrom
50mr-scale-fix

Conversation

@kevlu8

@kevlu8 kevlu8 commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Previously, 50mr scaling operated directly inside the eval() function. This worked, but it leads to strange interactions when dealing with TT cached evaluations. Since we don't track the 50mr key in our zobrist hash, two identical positions with different halfmove values will get the same scaled eval. This fix moves the 50mr scaling outside of eval, fixing this issue.

Elo   | 12.63 +- 5.80 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=32MB
LLR   | 2.89 (-2.25, 2.89) [-4.00, 0.00]
Games | N: 3028 W: 876 L: 766 D: 1386
Penta | [0, 279, 847, 387, 1]

https://ob.int0x80.ca/test/1121/

Bench: 2172931

@kevlu8
kevlu8 merged commit d0fcb25 into main Oct 23, 2026
9 checks passed
@kevlu8
kevlu8 deleted the 50mr-scale-fix branch October 23, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant