Body: <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>
  
Tags: <engines><endgame><tablebases><python>
Title: Obtaining the correct move from syzygy tablebases (Python)
ThreadText: # Obtaining the correct move from syzygy tablebases (Python)
  
  (Asked by: username_0 on 2020-11-30)
  
  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](https://python-chess.readthedocs.io/en/latest/syzygy.html)). 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?
  
  **Tags:** engines, endgame, tablebases, python
  
  
  ---
  
  ## 0 answers
  
  