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

Increase reduction for captures that don't produce check if static eval is bad enough. #2612

Closed

Conversation

Vizvezdenec
Copy link
Contributor

passed STC
https://tests.stockfishchess.org/tests/view/5e8514b44411759d9d098543
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 46196 W: 9039 L: 8781 D: 28376
Ptnml(0-2): 750, 5412, 10628, 5446, 862
passed LTC
https://tests.stockfishchess.org/tests/view/5e8530134411759d9d09854c
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 23462 W: 3228 L: 2988 D: 17246
Ptnml(0-2): 186, 2125, 6849, 2405, 166
Idea behind this patch is that if static eval is really bad so capturing of current piece on spot will still produce position with eval much lower than alpha then our best chance is to create some kind of king attack. So captures without check are mostly worse than captures with check and can be reduced more.
There are a lot of things that can be tried on top of this idea - depth function is a complete guess so parameter tweaks or type of it is an object to change (no one says that it should be linear), this idea can be tried on quiet moves, maybe captures with really good history shouldn't be reduced that much, etc.
bench 5183250

bench 5183250
@anshulongithub
Copy link

This is terrific! @Vizvezdenec amazing work! and thank you so much..

@ddugovic
Copy link

ddugovic commented Apr 2, 2020

That many-term expression must have been tricky to find.

@Vizvezdenec
Copy link
Contributor Author

@ddugovic as funny as it is it's just a first attempt. And looking at attempts of tweaking it seems to be the best numbers. Maybe tuning will find smth better ofc :)

@vondele vondele closed this in c14f487 Apr 2, 2020
@vondele
Copy link
Member

vondele commented Apr 2, 2020

Thanks!

@MichaelB7
Copy link
Contributor

Wow - a certifiable 3+ Elo gainer - great patch.

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.

None yet

5 participants