Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init Stack::staticEval to VALUE_NONE instead of 0 #4320

Closed

Conversation

mstembera
Copy link
Contributor

https://tests.stockfishchess.org/tests/view/63ab91cf39af998100ce1666
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 53736 W: 14285 L: 13955 D: 25496
Ptnml(0-2): 121, 5921, 14500, 6159, 167

https://tests.stockfishchess.org/tests/view/63b2af5ee28ed36c814bed52
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 33776 W: 9130 L: 8934 D: 15712
Ptnml(0-2): 14, 3240, 10185, 3434, 15

bench: 4068510

This fixes a bug where on line 278 the Stack::staticEvals are initialized to 0. However VALUE_NONE is defined as 32002 so this is a bug in master. (Also includes a couple of non functional cleanups of the for loops.) Some additional comments at mstembera@0c62ca5

@dubslow
Copy link
Contributor

dubslow commented Jan 3, 2023

I sometimes feel like STCfish and LTCfish are two completely different engines, I wonder if this will help lessen that feeling. Great find!

@snicolet snicolet closed this in 9fe9ff0 Jan 4, 2023
@snicolet
Copy link
Member

snicolet commented Jan 4, 2023

Closed via 9fe9ff0, congrats :-)

@snicolet snicolet added the to be merged Will be merged shortly label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be merged Will be merged shortly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants