user25514: I have created a chess engine in Python and now want to start using the endgame tables in syzygy. I have downloaded all the relevant files and is now ready to start.
I have found how to access the files in Python via e.g. the Python Chess module (link). It there explains how I can get the WDL and DTZ information from a FEN position, which could be handy at times. BUT what I really want is to know the move to make to win in that FEN position, and I have not been able to figure out how to obtain this information from the files. The information online is very limited and I hope someone can please guide me on how to do this?

user-1: I can't be absolutely certain, as these particular tablebases are unfamiliar to me.  However, in all other tablebases that I've used, from the Thompson and forward, you had, basically, to:

generate all legal moves from the position,
for each move, make the move and look up the score for the resulting position, and then
select 'the right move' based on those retrieved scores, compared to the score for the starting position.


25514: <p>I have created a chess engine in Python and now want to start using the endgame tables in syzygy. I have downloaded all the relevant files and is now ready to start.</p>
<p>I have found how to access the files in Python via e.g. the Python Chess module (<a href="https://python-chess.readthedocs.io/en/latest/syzygy.html" rel="nofollow noreferrer">link</a>). It there explains how I can get the WDL and DTZ information from a FEN position, which could be handy at times. BUT what I really want is to know the move to make to win in that FEN position, and I have not been able to figure out how to obtain this information from the files. The information online is very limited and I hope someone can please guide me on how to do this?</p>
 -1: <p>I can't be absolutely certain, as these particular tablebases are unfamiliar to me.  However, in all other tablebases that I've used, from the Thompson and forward, you had, basically, to:</p>
<ol>
<li>generate all legal moves from the position,</li>
<li>for each move, make the move and look up the score for the resulting position, and then</li>
<li>select 'the right move' based on those retrieved scores, compared to the score for the starting position.</li>
</ol>
