user15636: I am trying to play with stockfish from terminal.
I entered the following commands:
position startpos e2e4
d

The output was:

Why is stockfish not accepting my move?

user15415: There is an issue with the syntax you are using. According to the UCI protocol you should use position startpos moves e2e4, i.e., the moves keyword is missing in your command.

15636: <p>I am trying to play with stockfish from terminal.</p>
<p>I entered the following commands:</p>
<pre><code>position startpos e2e4
d
</code></pre>
<p>The output was:</p>
<p><a href="https://i.stack.imgur.com/8NdOK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8NdOK.png" alt="stockfish output" /></a></p>
<p>Why is stockfish not accepting my move?</p>
 15415: <p>There is an issue with the syntax you are using. According to the <a href="http://wbec-ridderkerk.nl/html/UCIProtocol.html" rel="nofollow noreferrer">UCI protocol</a> you should use <code>position startpos moves e2e4</code>, i.e., the <strong>moves</strong> keyword is missing in your command.</p>
