Python and UCI engine I'm working with Stockfish in Python 3.

And when I do something like this:



I get just "bestmove e2e4". How can I retrieve full information?

Like this:
To get evaluation score for each legal move, you can do:


Set MultiPV to a high number, like in your answer
Play the moves, then invoke SF on each of the resulting FEN. For example, in the starting position you could start 20 SF instances, one for each possible move. This is the approach adopted by commercial companies, such as Chessable.


The first approach works but it's slow and not exactly scalable.

PS: Asking for Python code is off-topic here. We can guide you but we won't write code for you.