1

These days many online chess websites offer a board evaluation rating, often a bar, sometimes a number, sometimes both, as is the case here (see two red circles): enter image description here Black will take a pawn soon, so the evaluation is -0.9 pawns to white. Note that there are two components to the score. First, there's a raw score due to some sort of piece scoring system. Second, there's a positional evaluation scoring element that considers future moves and future pieces that might be taken. Seems clear, right?

Not exactly. Consider, near the end of the game, a pawn can get converted into a queen. Using the most popular piece-ranking systems, a pawn=1 can switch to a queen=~9 via this process. Therefore, if a player is a pawn ahead, and players play well, eventually, on average, one can expect that this might get promoted to a queen. Perhaps if you averaged it would be 3 (wild guess) considering that most other pieces can't get promoted. Anyway, one can see that the second term in the ranking scoring system has a look-ahead variability in that lopsidedness will increase in positive feedback fashion such that a 1 is much higher the further an engine looks ahead. This positive feedback would exist even without promotions.

My question is just how many moves these engine look ahead in ranking static boards.

3 Answers 3

0

It varies, but in this case it looks to be about 10 full moves.

In your screenshot, to the right of the circled -0.9, you can see some small text that says "Depth: 20". This is the number of half moves that the engine is supposedly looking.

In practice, this number is not exact. The engine will not examine every variation to that depth (for example, it's not likely to seriously examine Bh3 in your position), and if a variation has tactical things going on at the end, it might extend how far it looks at that variation beyond that number.

lopsidedness will increase in positive feedback fashion such that a 1 is much higher the further an engine looks ahead.

Sometimes, but it's not always correct that a +1 will increase if you look farther ahead. It may decrease. There are many endgames which are theoretical draws despite one side being one, or even two, pawns ahead. Consider this position, from a game where I briefly thought I was going to get my first-ever win against a master:

[White "Me"]
[Black "Opponent"]
[FEN "7k/r6P/4K3/5P1R/8/8/8/8 w - - 17 82"]

Stockfish (without a tablebase) evaluated this as +2.31 because of the two advanced pawns, but it's a draw - playing f6 results in Ra6+ Kf7 Rxf6+ Kxf6 stalemate, and there's no other good way to progress. (Oh well, drawing against a master isn't bad either.)

4

Note that there are two components to the score. First, there's a raw score due to some sort of piece scoring system. Second, there's a positional evaluation scoring element that considers future moves and future pieces that might be taken.

This is wrong. The "piece scoring system" is part of the positional evaluation that is considered at the end of possible lines. It doesn't matter what the pieces are now, it matters what they will be in the future. Therefore the -0.9 is equal to the score after the best move black can currently do, 2...dxe4. It's also equal to the score after the best move white can answer to that, moves other than 3.d3 apparently scored worse. This is called the "minimax algorithm".

At the time static evaluation is done, it looks only at that exact position and doesn't look ahead more moves. The looking ahead part is done by then.

Pawns get different scores depending on where they are. I think that most engines compute some score that says how "endgameish" a given position is, and if it's more endgameish then a pawn gets a bigger bonus for being far advanced, but that's actually guesswork on my part.

9
  • 1
    Interestingly, the Stockfish evaluation gives a slightly bigger bonus for passed pawn rank in the endgame - unless it's on the 7th rank, in which case it gets a slightly bigger bonus in the middlegame.
    – D M
    Aug 27, 2018 at 17:16
  • +4!? First you are saying that it only looks 1 move ahead. That's redic. See e.g. lichess.org/EJjJxA1J/black#30 . Hit give s or solve. Then you can see the engine. The instant the white bishop moves to the upper left the score changes, even though the best move for black is to sac black knight by a white pawn. The ranking would not change so soon if you were right. Per other ans. it is looking ahead 10 moves. That's why. About me being wrong, it is mathematically the same if you evaluate now + changes to eval on line x vs. end position at line x. (-0.9=~0-1+.1 vs -0.9=-0.9.) Aug 28, 2018 at 16:55
  • 1
    @JasonArthurTaylor: I'm not saying that at all. I'm saying that first it does minimax search, and then at the end of each possible line it does static evaluation of that position. It may be mathematically the same, but it's simply not how engines work. It's faster to only evaluate at the end of the line. Aug 28, 2018 at 17:18
  • There are two issues here. Sorry if I failed to understand you about your answer to the look ahead. Please help me and other readers. How many moves do you think stockfish was looking ahead in evaluating the position, if any? Aug 28, 2018 at 17:45
  • 1
    @DM: yes, but only at the end of each line, statically. Only based on that particular board at that moment. Aug 29, 2018 at 16:51
0

The answer is looking right at you. Below engine name ("Stockfish 9+") it says: Depth 20 -- that is current evaluation depth.

enter image description here

And whatever you wrote about the pawn promotion -- that's very nice thinking, but unless there's a clear promotion within the next 15-20 moves, the engine would not consider it, until it's clear that promotion can be really done, give the both sides play at their best.

2
  • Re pawns: no not true. The subroutine that does a board score eval considers pawn ranks, BUT if a deeper eval. is later done (and not pruned and not at depth limit), that deeper one will overrule the less accurate rank-based one. Therefore, a pawn value that doesn't become queen might be greatest like on rank 3 4, depending on a lot of things. I am not sure you will understand this but I hope you do. reddit.com/r/chess/comments/20qwe6/… Aug 29, 2018 at 0:49
  • @JasonArthurTaylor Obviously, if it looks ahead, it's using whatever's in that future position instead. And yes, there are other factors involved (for example, if advancing a pawn puts it closer to the enemy king and farther from yours, the evaluation could decrease.)
    – D M
    Aug 29, 2018 at 16:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.