1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 09:13:08 +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:
No name 2020-07-17 10:25:23 +03:00 committed by nodchip
parent 92c2167481
commit 1536e31065

View file

@ -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();