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

Refine interaction between space bonus and number of blocked pawns. #2631

Closed

Conversation

Vizvezdenec
Copy link
Contributor

passed STC
https://tests.stockfishchess.org/tests/view/5e94560663d105aebbab243d
LLR: 2.96 (-2.94,2.94) {-0.50,1.50}
Total: 29500 W: 5842 L: 5603 D: 18055
Ptnml(0-2): 504, 3443, 6677, 3562, 564
passed LTC
https://tests.stockfishchess.org/tests/view/5e95b383c2aaa99f75d1a14d
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 63504 W: 8329 L: 7974 D: 47201
Ptnml(0-2): 492, 5848, 18720, 6197, 495
This patch refines recently introduced interaction between space bonus and number of blocked pawns in position.

  1. pawns counts as blocked also if it push square is attacked by 2 enemy pawns;
  2. overall dependance is stronger as well as offset;
  3. bonus increase is capped at 9 blocked pawns in position (maximum is obviously 16 :) ).
    bench 4956028

bench 4956028
Copy link

@Rocky640 Rocky640 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pawn.cpp line 109
after this change, bool(...) is not required here

@Lolligerhans
Copy link
Contributor

Lolligerhans commented Apr 15, 2020

Did you try the || part individually, without min()? I did not find such a test on fishtest but that is very hard to navigate, so I am not sure.

@Vizvezdenec
Copy link
Contributor Author

Yes @Lolligerhans

@vondele vondele closed this in ca4e399 Apr 15, 2020
@vondele
Copy link
Member

vondele commented Apr 15, 2020

Thanks!

MichaelB7 pushed a commit to MichaelB7/Stockfish that referenced this pull request Apr 15, 2020
This patch refines the recently introduced interaction between
the space bonus and the number of blocked pawns in a position.

* pawns count as blocked also if their push square is attacked by 2 enemy pawns;
* overall dependence is stronger as well as offset;
* bonus increase is capped at 9 blocked pawns in position;

passed STC
https://tests.stockfishchess.org/tests/view/5e94560663d105aebbab243d
LLR: 2.96 (-2.94,2.94) {-0.50,1.50}
Total: 29500 W: 5842 L: 5603 D: 18055
Ptnml(0-2): 504, 3443, 6677, 3562, 564

passed LTC
https://tests.stockfishchess.org/tests/view/5e95b383c2aaa99f75d1a14d
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 63504 W: 8329 L: 7974 D: 47201
Ptnml(0-2): 492, 5848, 18720, 6197, 495

closes official-stockfish#2631

bench 4956028
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

4 participants