-
I am running stockfish 15.1 under windows 10. When I open a command window and run stockfish with out io redirection and just enter commands it seems to work fine. E:\Lisp\Work>/lisp/system/chess/stockfish.exe My input are the three lines beginning with position, isready and go E:\Lisp\Work>/lisp/system/chess/stockfish.exe <engine_input.txt With input redirection I no longer get all the info lines, and the final bestmove is different and also does not come with a ponder Can anybody explain what is going on or what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
as you redirect the input, that input file is closed by the OS as soon as all input is sent. Once the input is closed SF will stop and quit the search. I would recommend to use python-chess for interaction with an UCI engine, but just keeping the input open until you see bestmove in the output works as well. The easiest might be to send a |
Beta Was this translation helpful? Give feedback.
-
Thank You, ucinewgame worked great! |
Beta Was this translation helpful? Give feedback.
as you redirect the input, that input file is closed by the OS as soon as all input is sent. Once the input is closed SF will stop and quit the search.
I would recommend to use python-chess for interaction with an UCI engine, but just keeping the input open until you see bestmove in the output works as well.
The easiest might be to send a
ucinewgame
after the go command, which will wait until the search finishes.