I am trying to play with stockfish from terminal.

I entered the following commands:

position startpos e2e4

The output was:

stockfish output

Why is stockfish not accepting my move?

1 Answer 1


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.

  • Thank you! Checked the syntax many times, but I was somehow blind to the mistake. Jun 27, 2020 at 14:03
  • Sir, I am now able to make the 1st move. How to make the 2nd move? Jun 27, 2020 at 14:05
  • Both position moves c7c6 and moves c7c6 doesn't seem to work. Jun 27, 2020 at 14:06
  • 2
    UCI is stateless, so you need to send the list of moves from the beginning anew, e.g., position startpos moves e2e4 c7c6 (the protocol is not really designed for manual usage) Jun 27, 2020 at 14:57
  • Thank you, very grateful! 🙏🏼 Jun 27, 2020 at 15:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.