Skip to content

Conversation

eduherminio
Copy link
Member

@eduherminio eduherminio commented Oct 2, 2024

This might prevent information loss or the attempt to use the wrong TT entries, given how (short)n can be -1 instead of the intended value it'd have with (ushort)n.

Test  | tt-key-ushort
Elo   | 4.68 +- 5.09 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=4MB
LLR   | 2.93 (-2.25, 2.89) [-5.00, 0.00]
Games | 7130: +2036 -1940 =3154
Penta | [144, 772, 1662, 818, 169]
https://openbench.lynx-chess.com/test/799/

@eduherminio eduherminio changed the title 🔍 Make TranspositionTableElement.Key an ushort instead of a short. 🔍 Make TranspositionTableElement.Key an ushort instead of a short Oct 2, 2024
@eduherminio eduherminio marked this pull request as ready for review October 2, 2024 01:21
@eduherminio eduherminio merged commit 3226221 into main Oct 2, 2024
27 checks passed
@eduherminio eduherminio deleted the tt-key-ushort branch October 2, 2024 01:22
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