Answers.Body: <p>The reason is very simple:</p>
  
  <blockquote>
    <p>position startpos moves e2e4 d7d6 d2d4 e7e6 g1f3 c8d7 f1d3 h7h6 e1g1 c7c5 f1e1 e8f8</p>
  </blockquote>
  
  <p>This is invalid. The position before <code>e8f8</code> is:</p>
  
  <p><a href="https://i.sstatic.net/G49pu.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/G49pu.png" alt="enter image description here"></a></p>
  
  <p><code>e8f8</code> is invalid because Black has a bishop on f8. Stockfish can't play the move, so it just skip it.</p>
  
  <p>To Stockfish, the diagram position is the position it's thinking. The best move is <code>...cxd4</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-16T13:20:26.030Z
Answers.Text: Oh too bad I missed that. Thank you very much.
Answers.UserDisplayName: Bee
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-16T11:55:27.720Z
Answers.LastActivityDate: 2017-07-16T13:22:25.203Z
Answers.LastEditDate: 2017-07-16T13:22:25.203Z
Answers.UserDisplayName: SmallChess
Body: <p>I asked this question in stockfishchess.org support but didn't get any response. So I'm trying to get some answers from you all. </p>
  
  <p>My question:</p>
  
  <p>Please find the output of communication with the engine <a href="http://support.stockfishchess.org/discussions/problems/8262/assets/8699536f356332751f589175b63647d95716c3fa/output.txt" rel="nofollow noreferrer">here</a>. (It has only 8 steps.) The last best move (<code>bestmove c5d4 ponder f3d4</code>) is not for white, but for black.</p>
  
  <p>Am I doing something wrong here or has engine confused for some reason? Appreciate your help to understand.</p>
  
  <p>Original question link: 
  <a href="http://support.stockfishchess.org/discussions/problems/8262-engine-suddenly-changed-the-side" rel="nofollow noreferrer">http://support.stockfishchess.org/discussions/problems/8262-engine-suddenly-changed-the-side</a></p>
  
Tags: <engines><stockfish><uci>
Title: Stockfish: Engine suddenly changed the side?
ThreadText: # Stockfish: Engine suddenly changed the side?
  
  (Asked by: username_0 on 2017-07-16)
  
  I asked this question in stockfishchess.org support but didn't get any response. So I'm trying to get some answers from you all.
  
  My question:
  
  Please find the output of communication with the engine [here](http://support.stockfishchess.org/discussions/problems/8262/assets/8699536f356332751f589175b63647d95716c3fa/output.txt). (It has only 8 steps.) The last best move (`bestmove c5d4 ponder f3d4`) is not for white, but for black.
  
  Am I doing something wrong here or has engine confused for some reason? Appreciate your help to understand.
  
  Original question link:
  <http://support.stockfishchess.org/discussions/problems/8262-engine-suddenly-changed-the-side>
  
  **Tags:** engines, stockfish, uci
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-07-16. Score: 4 | Accepted answer
  
  The reason is very simple:
  
  > position startpos moves e2e4 d7d6 d2d4 e7e6 g1f3 c8d7 f1d3 h7h6 e1g1 c7c5 f1e1 e8f8
  
  This is invalid. The position before `e8f8` is:
  
  [![enter image description here](https://i.sstatic.net/G49pu.png)](https://i.sstatic.net/G49pu.png)
  
  `e8f8` is invalid because Black has a bishop on f8. Stockfish can't play the move, so it just skip it.
  
  To Stockfish, the diagram position is the position it's thinking. The best move is `...cxd4`.
  
  > **Comments:**
  > **username_0**: Oh too bad I missed that. Thank you very much.  
  
  ---
  
  