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:
parent
92c2167481
commit
1536e31065
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue