I want to use python-chess to get the top 5 Stockfish moves from a given position with a numerical evaluation for each move. Is it more accurate to run the engine for 10 minutes with MultiPV=5, or to quickly rank all the legal moves (with maybe 1-2 seconds engine time each) and then let the engine think about the top 5 or so one at a time for 2 minutes?

1 Answer 1


Both approaches will work.

  • In the second approach, you will have better accuracy of your evaluations but you may miss an important move. For example, if 20...Rxc3 positional exchange sacrifice is a strong move, you will probably miss it with a 1-2s quick engine search.
  • In the first approach, you will lose accuracy but you won't miss a strong hidden resource like in the second approach.

Classical example of sensitivity vs false positives. The second approach is more sensitive but you trade it with higher false positive rate.

In Chessable engine analysis, I adopted the second approach. I gave about 10s for each legal move (there could be many!). Filter out only the top moves, then seek evaluation for each individual move. 1-2s is too little.

PS: MultiPV is causing lose in accuracy because the engine has to evaluate the moves before those moves are played on the board.

  • 1
    That answers my question perfectly. Thank you. Aug 26, 2020 at 1:17

Your Answer

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

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