mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
Load the parameter set on an `isready' as well
Unbreaks Scid vs. PC, which doesn't send `ucinewgame'.
This commit is contained in:
+6
-2
@@ -383,8 +383,12 @@ void UCI::loop(int argc, char* argv[]) {
|
||||
#endif
|
||||
Search::clear();
|
||||
}
|
||||
else if (token == "isready") sync_cout << "readyok" << sync_endl;
|
||||
|
||||
else if (token == "isready") {
|
||||
#if defined(EVAL_NNUE)
|
||||
init_nnue(true);
|
||||
#endif
|
||||
sync_cout << "readyok" << sync_endl;
|
||||
}
|
||||
// Additional custom non-UCI commands, mainly for debugging.
|
||||
// Do not use these commands during a search!
|
||||
else if (token == "flip") pos.flip();
|
||||
|
||||
Reference in New Issue
Block a user