Moderator: Andres Valverde
geko wrote:on crafty 20.9
i've add the below code at line 312 of option.c file, so the new "eval" command disply the static evaluation of actual position; the result on initial position is 24, but must be 0!! where is the problem?
Tord Romstad wrote:geko wrote:on crafty 20.9
i've add the below code at line 312 of option.c file, so the new "eval" command disply the static evaluation of actual position; the result on initial position is 24, but must be 0!! where is the problem?
Why do you think there is a problem? An advantage of +0.24 for white in the opening position does not seem unreasonable. Glaurung evaluates the same position as +0.16, for what it's worth.
Most programs have a small bonus for the side to move in their evaluation function. I suppose Crafty has such a bonus, too.
Tord
geko wrote:on crafty 20.9
i've add the below code at line 312 of option.c file, so the new "eval" command disply the static evaluation of actual position; the result on initial position is 24, but must be 0!! where is the problem?
Robert Allgeuer wrote:Why would one expect a positive effect of scoring the right to move?
Is it really true that the right to move in a leaf node has a significance for the overall evaluation score of the root move? Isn?t it more just a coincidence based on extensions, whether a specific line is followed up to an odd or even depth?
Robert
Robert Allgeuer wrote:Why would one expect a positive effect of scoring the right to move?
Is it really true that the right to move in a leaf node has a significance for the overall evaluation score of the root move? Isn?t it more just a coincidence based on extensions, whether a specific line is followed up to an odd or even depth?
Tord Romstad wrote:You seem to be confused. We are talking about the static evaluation only, and this is completely unrelated to the search, extensions, odd or even depths (well, this is not entirely true, because some programs have an asymmetric eval, but let's not get carried away), and so on. The static evaluation function is how the program evaluates the position without search.
Robert Allgeuer wrote:What I meant is that the static score from one leaf position evaluation will eventually be propagated down to the search root as overall score of the search. Depending on whether this specific line was searched to an even or an odd depth this score will have the right to move bonus added or subtracted. One could see the right to move bonus as a modulation of the root score according to whether the best line is searched to odd or even depth.
I think this leads to an effect that the program prefers to play into lines that end in (quiet) positions with its own right to move, i.e. into lines that are searched to odd depths. It may prefer such lines over lines that would trigger another extension and thus evaluate one ply deeper up to an even depth, essentially even losing search depth in the PV. Whether this is good or not I do not know, but at least it would not be obvious to me like this, why this were a desirable effect.
Tord Romstad wrote:...
Now consider an evaluation function without a side to move bonus. In most positions, there will be at least one move which improves the static eval (unless the side to move is in zugzwang). This means that the evaluation function doesn't satisfy the property described in the preceding paragraph. The correct value of the side to move bonus is the amount by which the best move will typically improve the static eval for an evaluation function without such a bonus.
Tord Romstad wrote:Robert Allgeuer wrote:Of course there are exceptions - positions where having the side to move is unimportant, or even a disadvantage (i.e. zugzwang positions). This can be said about almost all evaluation rules. There are positions where a doubled pawn is strong, where a knight is well placed in a corner, or where a shattered king shelter is unimportant.
Tord
Return to Programming and Technical Discussions
Users browsing this forum: No registered users and 47 guests