4

On Oct 31, 2014, Tord Romstad wrote:

The moves are not searched in descending order from best to worst. Stockfish has no idea which move is the second, third best, etc., and it doesn't have any centipawn scores for any moves other than the current best move. For the rest of the moves, the centipawn scores are unknown, all we have for those moves are upper bounds for the centipawn scores.

As an example, assume that we have a position with four legal moves A, B, C and D. What Stockfish knows about the centipawn values of the four moves after searching to a given depth would usually be something like this:

Move A (best move): 100 centipawns.
Move B: At most 50 centipawns
Move C: At most 80 centipawns
Move D: At most 0 centipawns

Because we only have upper bounds for moves B, C and D, we have no idea which of these three moves is the best.

Is there a way to make Stockfish output the data described by Tord? I would argue that it is valuable to not only know the best move, but also to have an idea of whether the best move is "much better" than the other moves or only "slightly better".

1 Answer 1

2

I don't think Stockfish gives you the information as it's not useful to anybody other than programmers for debugging. The best way is just run MultiPV=2, and subtract the best two moves. Is there any reason why you can't do that?

If you insist you'll have to modify the source code yourself. It's not a very hard change. But why would you do that?

1
  • Running Stockfish with MultiPV=2 is computationally much more expensive, because Stockfish would strive to compute the exact evaluation score of the second best move, too. That's not what I want. Contrary to your opinion, I do think it is valuable information to know a lower bound on the margin. Without running any additional analyses, you would get an idea of whether the best move is much better than the second best move, or just slightly better. Mar 28, 2018 at 9:19

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.