Answers.Body: <p>I have experience working with Fathom in one of my iOS apps. Look at my recent post:</p>
  
  <p><a href="http://talkchess.com/forum/viewtopic.php?t=62378" rel="nofollow noreferrer">http://talkchess.com/forum/viewtopic.php?t=62378</a></p>
  
  <p>My command was: <code>fathom --path=YOUR_PATH --test "FEN_STRING"</code></p>
  
  <ul>
  <li>Substitute <code>YOUR_PATH</code> with your path. You must have both WDL and DTZ files in the same directory.</li>
  <li>Substitute <code>FEN_STRING</code> with your FEN string. You will need the quotation mark.</li>
  </ul>
  
  <p>My console session posted in the link:</p>
  
  <p><a href="https://i.sstatic.net/jJ6sj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jJ6sj.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-29T12:04:19.707Z
Answers.LastActivityDate: 2016-12-29T12:04:19.707Z
Answers.UserDisplayName: SmallChess
Body: <p>I'm trying to make syzygy browsing tool <strong>fathom.exe</strong> work. If you have experience with this, please let me know. I tried million of combinations of tokens to format the position command and the program always returns empty string.</p>
  
  <p>When I run this command</p>
  
  <pre><code>FILE* pipe = _popen("c:\\fathom.exe --help", "r");
  </code></pre>
  
  <p>program returns this info string:</p>
  
  <pre><code>usage: c:\fathom.exe [--help] [--path=PATH] [--test] FEN
  
  WHERE:
  FEN
      The position (as a FEN string) to be probed.
  --help
      Print this helpful message.
  --path=PATH
      Set the tablebase PATH string.
  --test
      Print the result only.  Useful for scripts.
  
  DESCRIPTION:
  This program is a stand-alone Syzygy tablebase probe tool.  The
  program takes as input a FEN string representation of a chess
  position and outputs a PGN representation of the probe result.
  
  In addition to the standard fields, the output PGN represents the
  following information:
  - Result: "1-0" (white wins), "1/2-1/2" (draw), or "0-1" (black wins)
  - The Win-Draw-Loss (WDL) value for the next move: "Win", "Draw",
    "Loss", "CursedWin" (win but 50-move draw) or "BlessedLoss" (loss
    but 50-move draw)
  - The Distance-To-Zero (DTZ) value (in plys) for the next move
  - WinningMoves: The list of all winning moves
  - DrawingMoves: The list of all drawing moves
  - LosingMoves: The list of all losing moves
  
  The PGN contains a pseudo "principle variation" of Syzygy vs. Syzygy
  for the input position.  Each PV move is rational with respect to
  preserving the WDL value.  The PV does not represent the shortest
  mate nor the most natural human moves.
  </code></pre>
  
  <p>Can you write me please an <strong>exact string command</strong> to analyse for example </p>
  
  <p>4k3/4n3/8/8/4K3/8/1B2B3/8 w - - 0 1</p>
  
  <p>My wdl folder is C:/Tablebases/Syzygy/wdl</p>
  
  <p>My dtz folder is C:/Tablebases/Syzygy/dtz</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-29T12:14:12.730Z
Comments.Text: Please note it's not possible to make it work unless you copy your files into the same directory.
Comments.UserDisplayName: SmallChess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-29T12:21:26.883Z
Comments.Text: I'm now looking at it and I must first make sure that operating system or antivirus doesn't block the program under some circumstances...
Comments.UserDisplayName: hoacin
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-29T12:22:25.247Z
Comments.Text: Don't bother to check. Your output means your usage is wrong. I have seen it before. If your anti-virus blocks it, it wouldn't even run.
Comments.UserDisplayName: SmallChess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-29T12:26:56.043Z
Comments.Text: Right now even the exact line with --help that worked at time of writing the post doesn't work. SmartScreen woke up and blocked it suddenly. I think I should check what's going on.
Comments.UserDisplayName: hoacin
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-29T12:28:12.207Z
Comments.Text: Please close all anti-virus and other related programs just for testing. Fathom is safe and open-source for you to run.
Comments.UserDisplayName: SmallChess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-29T12:40:13.507Z
Comments.Text: I trust it and hopefully my system now trusts it too as both antivirus and smart screen filter are off. --help command is functional now so I can go check the command string.
Comments.UserDisplayName: hoacin
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-29T12:43:01.227Z
Comments.Text: Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/50887/discussion-between-hoacin-and-student-t).
Comments.UserDisplayName: hoacin
Tags: <programming><tablebases>
Title: Fathom syzygy browsing tool
ThreadText: # Fathom syzygy browsing tool
  
  (Asked by: username_0 on 2016-12-29)
  
  I'm trying to make syzygy browsing tool **fathom.exe** work. If you have experience with this, please let me know. I tried million of combinations of tokens to format the position command and the program always returns empty string.
  
  When I run this command
  
  ```
  FILE* pipe = _popen("c:\\fathom.exe --help", "r");
  
  ```
  
  program returns this info string:
  
  ```
  usage: c:\fathom.exe [--help] [--path=PATH] [--test] FEN
  
  WHERE:
  FEN
      The position (as a FEN string) to be probed.
  --help
      Print this helpful message.
  --path=PATH
      Set the tablebase PATH string.
  --test
      Print the result only.  Useful for scripts.
  
  DESCRIPTION:
  This program is a stand-alone Syzygy tablebase probe tool.  The
  program takes as input a FEN string representation of a chess
  position and outputs a PGN representation of the probe result.
  
  In addition to the standard fields, the output PGN represents the
  following information:
  - Result: "1-0" (white wins), "1/2-1/2" (draw), or "0-1" (black wins)
  - The Win-Draw-Loss (WDL) value for the next move: "Win", "Draw",
    "Loss", "CursedWin" (win but 50-move draw) or "BlessedLoss" (loss
    but 50-move draw)
  - The Distance-To-Zero (DTZ) value (in plys) for the next move
  - WinningMoves: The list of all winning moves
  - DrawingMoves: The list of all drawing moves
  - LosingMoves: The list of all losing moves
  
  The PGN contains a pseudo "principle variation" of Syzygy vs. Syzygy
  for the input position.  Each PV move is rational with respect to
  preserving the WDL value.  The PV does not represent the shortest
  mate nor the most natural human moves.
  
  ```
  
  Can you write me please an **exact string command** to analyse for example
  
  4k3/4n3/8/8/4K3/8/1B2B3/8 w - - 0 1
  
  My wdl folder is C:/Tablebases/Syzygy/wdl
  
  My dtz folder is C:/Tablebases/Syzygy/dtz
  
  **Tags:** programming, tablebases
  
  > **Comments:**
  > **username_1**: Please note it's not possible to make it work unless you copy your files into the same directory.  
  > **username_0**: I'm now looking at it and I must first make sure that operating system or antivirus doesn't block the program under some circumstances...  
  > **username_1**: Don't bother to check. Your output means your usage is wrong. I have seen it before. If your anti-virus blocks it, it wouldn't even run.  
  > **username_0**: Right now even the exact line with --help that worked at time of writing the post doesn't work. SmartScreen woke up and blocked it suddenly. I think I should check what's going on.  
  > **username_1**: Please close all anti-virus and other related programs just for testing. Fathom is safe and open-source for you to run.  
  > **username_0**: I trust it and hopefully my system now trusts it too as both antivirus and smart screen filter are off. --help command is functional now so I can go check the command string.  
  > **username_0**: Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/50887/discussion-between-username_0-and-student-t).  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-12-29. Score: 1 | Accepted answer
  
  I have experience working with Fathom in one of my iOS apps. Look at my recent post:
  
  <http://talkchess.com/forum/viewtopic.php?t=62378>
  
  My command was: `fathom --path=YOUR_PATH --test "FEN_STRING"`
  
  * Substitute `YOUR_PATH` with your path. You must have both WDL and DTZ files in the same directory.
  * Substitute `FEN_STRING` with your FEN string. You will need the quotation mark.
  
  My console session posted in the link:
  
  [![enter image description here](https://i.sstatic.net/jJ6sj.png)](https://i.sstatic.net/jJ6sj.png)
  
  
  ---
  
  