bool execute_uci_command(const string& cmd) {
- static Position pos(StartPositionFEN, 0); // The root position
+ static Position pos(StartPositionFEN, false, 0); // The root position
UCIParser up(cmd);
string token;
cout << "uciok" << endl;
}
else if (token == "ucinewgame")
- pos.from_fen(StartPositionFEN);
+ pos.from_fen(StartPositionFEN, false);
else if (token == "isready")
cout << "readyok" << endl;
if (token == "startpos")
{
- pos.from_fen(StartPositionFEN);
+ pos.from_fen(StartPositionFEN, false);
if (!(up >> token))
return;
}
fen += token;
fen += ' ';
}
- pos.from_fen(fen);
+ pos.from_fen(fen, Options["UCI_Chess960"].value<bool>());
}
if (token != "moves")