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

whitePromotionDistance < blackPromotionDistance - 1 #8

Open
bagaturchess opened this issue Mar 28, 2019 · 0 comments
Open

whitePromotionDistance < blackPromotionDistance - 1 #8

bagaturchess opened this issue Mar 28, 2019 · 0 comments

Comments

@bagaturchess
Copy link

Hello,
this is a feature request for the pawns evaluation function.
In the java file https://github.com/sandermvdb/chess22k/blob/master/src/main/java/nl/s22k/chess/eval/PassedPawnEval.java there is a block:
if (whitePromotionDistance < blackPromotionDistance - 1) {
score += 350;
} else if (whitePromotionDistance > blackPromotionDistance + 1) {
score -= 350;
}
This code doesn't include the score into the endgame part of the eval, which should be not good ... I assume that in endgames it is even more important to handle these cases. Probably the ELO would be more if this is implemented. Also it is good to have a bonus of 175 for promotionDistance == 2, when the pawn cannot be stopped similar to promotionDistance == 1.
And another topic: in KPsvKPs endgames would be good to have implemented unstoppable passers logic.

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

No branches or pull requests

1 participant