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

Simplify away advanced pawn push. #3390

Closed

Conversation

Vizvezdenec
Copy link
Contributor

Passed STC
https://tests.stockfishchess.org/tests/view/6048c5842433018de7a387e6
LLR: 2.93 (-2.94,2.94) {-1.25,0.25}
Total: 34424 W: 3081 L: 3015 D: 28328
Ptnml(0-2): 110, 2442, 12052, 2488, 120
Passed LTC
https://tests.stockfishchess.org/tests/view/6048f7d22433018de7a387f0
LLR: 2.94 (-2.94,2.94) {-0.75,0.25}
Total: 142024 W: 5170 L: 5202 D: 131652
Ptnml(0-2): 50, 4678, 61613, 4596, 75
Continuation of work by @topologist .
Instead of using advanced pawn push in qsearch we can use a simple check if move is a promotion or no. This allows to simplify this method in position.h alltogether.
bench 4339126

bench 4339126
@snicolet snicolet added the to be merged Will be merged shortly label Mar 16, 2021
@snicolet
Copy link
Member

Looks good to me

@snicolet snicolet closed this in d58e836 Mar 17, 2021
@snicolet
Copy link
Member

Merged via d58e836, thanks :-)

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

2 participants