3

Is it possible to perform analysis with stockfish for a given depth, but stop in case it is taking longer than a specified time?

Something like this:

go depth 17 max movetime 10000

or

setoption name MaxMovetime value 10000
...
go depth 17

2

I don't think it's possible to do it in the UCI protocol. Fortunately, it's really easy to do it yourself. For example, in my SmallFish app (http://www.smallchess.com), to save the phone's battery the app would send the "stop" signal to the engine after a minute of analysis. The command is very simple:

stop

You will just need to create a timer yourself and send the stop signal to terminate the search immediately.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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