Answers.Body: <p>You are expected to have your own internal chess board. If you don’t have one, you could parse the FEN you give to the engine and work out the pieces.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-16T23:16:28.947Z
Answers.LastActivityDate: 2017-10-16T23:47:37.023Z
Answers.LastEditDate: 2017-10-16T23:47:37.023Z
Answers.UserDisplayName: SmallChess
Answers.Body: <p>With the EGN (from, to) you can simply do a check up on what piece exist on the <code>from</code> position.</p>
  
  <p>Say the engine gives you <code>a2a4</code> you then simply check what exists on <code>a2</code> and then generate information based on that.</p>
  
  <p>You can do this cause your GUI will always have the same chess board as the engine. It's the engine that recieves a FEN string from the GUI anyways.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-16T22:42:20.507Z
Answers.LastActivityDate: 2017-10-16T22:42:20.507Z
Answers.UserDisplayName: andersfylling
Body: <p>UCI output from engines is generally raw in the form of g1f3 and e2e4 representing Nf3 and Pe4. One engine I saw (lozza) sends its PV output with the piece names.  Others, like Stockfish, don't include the piece names in their PV.</p>
  
  <p>How do I get the piece names to show in the PV? I am working on creating my first user GUI, so any help is appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-18T12:13:05.077Z
Comments.Text: There is probably some open source code out there somewhere. I just don't know where it is yet.
Comments.UserDisplayName: Jess Ortiz
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-26T22:15:58.080Z
Comments.Text: [Here](https://github.com/oganm/stockfisher/blob/master/R/longToShort.R)'s an R example. Not quite sure if it's perfect yet. If you got to write your own, I'd be interested in seeing it
Comments.UserDisplayName: OganM
Tags: <software><programming><uci>
Title: Changing UCI output to include piece names
ThreadText: # Changing UCI output to include piece names
  
  (Asked by: username_0 on 2017-10-16)
  
  UCI output from engines is generally raw in the form of g1f3 and e2e4 representing Nf3 and Pe4. One engine I saw (lozza) sends its PV output with the piece names. Others, like Stockfish, don't include the piece names in their PV.
  
  How do I get the piece names to show in the PV? I am working on creating my first user GUI, so any help is appreciated.
  
  **Tags:** software, programming, uci
  
  > **Comments:**
  > **username_0**: There is probably some open source code out there somewhere. I just don't know where it is yet.  
  > **username_1**: [Here](https://github.com/oganm/stockfisher/blob/master/R/longToShort.R)'s an R example. Not quite sure if it's perfect yet. If you got to write your own, I'd be interested in seeing it  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2017-10-16. Score: 1 | Accepted answer
  
  You are expected to have your own internal chess board. If you don’t have one, you could parse the FEN you give to the engine and work out the pieces.
  
  
  ---
  
  ### Answer by username_3 on 2017-10-16. Score: 1
  
  With the EGN (from, to) you can simply do a check up on what piece exist on the `from` position.
  
  Say the engine gives you `a2a4` you then simply check what exists on `a2` and then generate information based on that.
  
  You can do this cause your GUI will always have the same chess board as the engine. It's the engine that recieves a FEN string from the GUI anyways.
  
  
  ---
  
  