What does the bestmove (none) response mean actually? #5075
-
At ChesslaBlab, we've written the Chess\UciEngine\Stockfish class to allow PHP devs to interact with Stockfish. It seems to be working okay most of the time but sometimes, unexpectedly, its bestMove() method won't work as expected because it has been designed under the assumption that Stockfish will always return a best move other than See chesslablab/chess-server#256 Please note we're still developing this feature and our understanding of it may be not too accurate at the moment. Anyway, could you please confirm when Stockfish will respond with a Thanks for the help, and keep up with the great work! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Can you give us a log of when this is happening? Some comments from me about your library or well your Stockfish class..
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the response, The log has recently been updated and doesn't contain any errors now. Stay tuned! |
Beta Was this translation helpful? Give feedback.
bestmove (none)
is returned when Stockfish didn't find a bestmove, this can happen when the position is game over (i.e. checkmate) it should never happen when the position is legal and there's a legal move to be made.Can you give us a log of when this is happening?
Some comments from me about your library or well your Stockfish class..
uci
https://github.com/chesslablab/php-chess/blob/main/src/UciEngine/Stockfish.php#L18
this will …