Answers.Body: <p>On a strict reading of the EPD spec, the example shown is malformed; the <code>pv</code> opcode should <strong>only</strong> contain a list of moves, not any commentary on it, which should be moved to other opcodes.  Indeed the move numbers should not be there either, only raw SAN moves.</p>
  
  <p>I assume that some naive EPD author has simply dumped the output of an engine into it.</p>
  
  <p>Indeed <a href="https://www.stmintz.com/ccc/index.php?id=137127" rel="nofollow noreferrer">following the discussion</a> from your (fixed) examples link, the first reply seems to agree with me:</p>
  
  <blockquote>
    <p>Crafty has an option to clean up epd (called epdpfdr) that produces
    EPD output that most programs can read.  You have a few errors in your
    output below.</p>
  </blockquote>
  
  <p>…</p>
  
  <blockquote>
    <p>No numbers in the pv!<br>
    Like this: <code>Nxg7 Kxg7 Qxf7+ Kh8 Qh7+ Kxh7 Rf7+ Kg6 Rf6+ Bxf6</code></p>
    
    <p>Also (a common mistake) is to put <code>...</code> in the front of the pv when it
    is black to move.  This is not allowed.  You did not do that, but I
    just wanted to mention it.</p>
  </blockquote>
  
  <p>…</p>
  
  <blockquote>
    <p>This stuff:<br>
      <code>(73.507) 130.7;</code><br>
    is not allowed except in the comments field.</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-03T11:01:14.907Z
Answers.Text: Thank you very much! Now I'm sure that I can follow the PGN specification as it is.
Answers.UserDisplayName: Welyab Paula
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-03T07:01:18.210Z
Answers.LastActivityDate: 2020-03-03T10:15:11.413Z
Answers.LastEditDate: 2020-03-03T10:15:11.413Z
Answers.UserDisplayName: Chromatix
Body: <p>I'm writing an EPD (Extended Position Description) parser and I have a doubt about what numbers means at end of "predicted variation" opcode.</p>
  
  <p>Look the follow EPD sample:</p>
  
  <pre><code>rq2r1k1/5pp1/p7/4bNP1/1p2P2P/5Q2/PP4K1/5R1R w - - bm Nxg7 BT-2630.1; ce 182; acs 0; acn 106652; pv 1.Nxg7 Kxg7 2.Qxf7+ Kh8 3.Qh7+ Kxh7 4.Rf7+ Kg6 5.Rf6+ Bxf6 6.h5+ Kxg5 (38.748) 112.9; c0 depth=8
  </code></pre>
  
  <p>As its possible to notice, the opcode <code>pv</code> ends with numbers <code>(38.748) 112.9</code>. That </p>
  
  <p>I started from the <a href="https://www.chessprogramming.org/Extended_Position_Description" rel="nofollow noreferrer">article in the Chess Programming Wiki</a>. There I found some related materials, like the <a href="http://www.saremba.de/chessgml/standards/pgn/pgn-complete.htm#c16.2" rel="nofollow noreferrer">PGN specification</a>, that have a more elaborated EPD documentation an some links to <a href="https://www.stmintz.com/ccc/index.php?id=137052" rel="nofollow noreferrer">EPD entries examples</a>. However, I can't find any explanation about the meaning of the numbers.</p>
  
  <p>Does anyone have some material with a more elaborated documentation about the EPD (or PGN) format?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-03T06:28:00.133Z
Comments.Text: Your link to "EPD examples" is a duplicate of the link to the PGN spec.
Comments.UserDisplayName: Chromatix
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-03T07:01:36.323Z
Comments.Text: Fixed. Thank you!
Comments.UserDisplayName: Welyab Paula
Tags: <pgn><fen>
Title: What do the numbers mean at the end of predicted variation opcode in and EPD entry?
ThreadText: # What do the numbers mean at the end of predicted variation opcode in and EPD entry?
  
  (Asked by: username_0 on 2020-03-03)
  
  I'm writing an EPD (Extended Position Description) parser and I have a doubt about what numbers means at end of "predicted variation" opcode.
  Look the follow EPD sample:
  rq2r1k1/5pp1/p7/4bNP1/1p2P2P/5Q2/PP4K1/5R1R w - - bm Nxg7 BT-2630.1; ce 182; acs 0; acn 106652; pv 1.Nxg7 Kxg7 2.Qxf7+ Kh8 3.Qh7+ Kxh7 4.Rf7+ Kg6 5.Rf6+ Bxf6 6.h5+ Kxg5 (38.748) 112.9; c0 depth=8
  
  As its possible to notice, the opcode pv ends with numbers (38.748) 112.9. That 
  I started from the article in the Chess Programming Wiki. There I found some related materials, like the PGN specification, that have a more elaborated EPD documentation an some links to EPD entries examples. However, I can't find any explanation about the meaning of the numbers.
  Does anyone have some material with a more elaborated documentation about the EPD (or PGN) format?
  
  **Tags:** pgn, fen
  
  > **Comments:**
  > **username_1**: Your link to "EPD examples" is a duplicate of the link to the PGN spec.  
  > **username_0**: Fixed. Thank you!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-03-03. Score: 2 | Accepted answer
  
  On a strict reading of the EPD spec, the example shown is malformed; the `pv` opcode should **only** contain a list of moves, not any commentary on it, which should be moved to other opcodes. Indeed the move numbers should not be there either, only raw SAN moves.
  
  I assume that some naive EPD author has simply dumped the output of an engine into it.
  
  Indeed [following the discussion](https://www.stmintz.com/ccc/index.php?id=137127) from your (fixed) examples link, the first reply seems to agree with me:
  
  > Crafty has an option to clean up epd (called epdpfdr) that produces
  > EPD output that most programs can read. You have a few errors in your
  > output below.
  
  …
  
  > No numbers in the pv!  
  > Like this: `Nxg7 Kxg7 Qxf7+ Kh8 Qh7+ Kxh7 Rf7+ Kg6 Rf6+ Bxf6`
  >
  > Also (a common mistake) is to put `...` in the front of the pv when it
  > is black to move. This is not allowed. You did not do that, but I
  > just wanted to mention it.
  
  …
  
  > This stuff:  
  > `(73.507) 130.7;`  
  > is not allowed except in the comments field.
  
  > **Comments:**
  > **username_0**: Thank you very much! Now I'm sure that I can follow the PGN specification as it is.  
  
  ---
  
  