#Is it necessary to do "position startpos moves" or "position startpos" after doing "ucinewgame"?
7 messages · Page 1 of 1 (latest)
All 3 ways work for me, so I was just curious if it affected how stockfish behaved when using or not using the "position"
if you send ucinewgame only, it will default to startpos
if you want to do something different besides startpos, you should send position startpos moves ... or position fen ... moves ...
This goes against the UCI protocol, though
Before the engine is asked to search on a position, there will always be a position command to tell the engine about the current position.
so it might break in future stockfish versions, i presume
anyways, stockfish is really meant to be used with a GUI which should always send a position command before searching
Thanks for the comments, in short, if you use "ucinewgame" it is not necessary to use "position startpos" (the result is the same), and it may be necessary in future versions (assumption)