lech wrote:My suggestion: This option may be: „possibility to get passed pawn (endgame)” (default 100), but when such a pawn already exists, not to add any bonus.
This is a weight parameter, not a bonus. It determines how important all evaluation details related to passed pawns will be for the overall evaluation when you are in endgame, or close to it. Setting it to 0 results in nearly ignoring all passed pawn related evaluation details, where the "amount of ignorance" depends on the exact game phase, i.e "how empty is the board".
What you suggest sounds like something completely different from the meaning of the existing "Passed Pawns (Endgame)" UCI parameter since it would imply to add some more or less complex logic to the program. I cannot comment on this currently, maybe the SF team wants to.
Regarding the given endgame position, I think the problem you point out might also be related to SF evaluation of "king proximity" to passed pawns. After looking into the source I get the impresssion that in the given example, SF does not account for the fact that the black queen can control the promotion square a8 so that the king is able to approach the white king, instead of being forced to approach Pa7. It seems that the Pa7 internally gets a very high bonus for "enemy king proximity" if the black king is not on a8 or b7. Setting the weight to 0 reduces the influence of the king proximity evaluation, which would explain the behaviour you have observed. So I could imagine that there is some relation to it.
Maybe here is some potential for a slight improvement of SF. Setting the UCI weight to 0 seems counterintuitive at least to address that problem
@Marco, Tord, Joona: could you comment on this? Do you think it could be worth considering a change that makes the "king proximity to passed pawns" (evaluate.cpp, lines 900+) evaluation more dependent on whether the enemy of the passed pawn owner has other pieces that can control the passer? At least a queen is able to do both, control a passer *and* create threats against the king, while a king itself usually can't serve for both at the same time.
Sven